Provide SQLExecutor's an opportunity to initialise state at initialization time
-------------------------------------------------------------------------------
Key: IBATIS-618
URL: https://issues.apache.org/jira/browse/IBATIS-618
Project: iBatis for Java
Issue Type: Improvement
Components: SQL Maps
Affects Versions: 2.3.4
Environment: Java on all platforms
Reporter: Abhigyan Agrawal
Fix For: 2.3.5
This is a increment to the committed feature request 'SQLExecutor plug-ins for
iBATIS2' (https://issues.apache.org/jira/browse/IBATIS-580)
The SQLExecutor interface doesn't have an initialization routine.
Attached are the test results with the initialization method added. No new test
cases needed, existing test suite regresses this
Attachments:
junitResults.tar - iBATIS test suite results with executor initialization
changes.
src.tar - Source with changes.
src.patch - changes in patch format.
Description of changes
1. com.ibatis.sqlmap.engine.execution.SqlExecutor
added init method to interface *
2. com.ibatis.sqlmap.engine.execution.DefaultSqlExecutor
added no-op implementation of init method
3. com.ibatis.sqlmap.engine.builder.xml.XmlParserState
invokes the SqlExecutor.init() providing the Executor a chance to
initialize itself
* The new init method ideally should have just had one parameter i.e. the
Config object, however in Ibatis initialization, the config and the properties
are not linked. Hence added as 2 parameters
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]