Package bitronix.tm.resource.jdbc
Class BaseProxyHandlerClass
java.lang.Object
bitronix.tm.resource.jdbc.BaseProxyHandlerClass
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
JdbcCallableStatementHandle,JdbcConnectionHandle,JdbcPreparedStatementHandle,JdbcResultSetHandle,JdbcStatementHandle,JdbcUncachedPreparedStatementHandle,LrcConnectionHandle,LrcXAConnection
Base class for Proxy InvocationHandlers. Maintains a method cache
for swift delegation to either the overridden methods (implemented
in a sub-class of this class) or the underlying delegate class'
methods. Makes proxying an interface almost completely painless.
- Author:
- brettw
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BaseProxyHandlerClass
public BaseProxyHandlerClass()
-
-
Method Details
-
invoke
Implementation of the InvocationHandler interface.- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable- See Also:
-
getProxiedDelegate
Must be implemented by the sub-class of this class. This method should return the "true" object to be delegated to in the case that the method is not overridden by the sub-class.- Returns:
- the true delegate object
- Throws:
Exception- can throw any exception if desired
-