com.mtgi.analytics.sql
Class BehaviorTrackingDataSource.HandlerStub
java.lang.Object
com.mtgi.analytics.sql.BehaviorTrackingDataSource.HandlerStub
- All Implemented Interfaces:
- InvocationHandler
- Direct Known Subclasses:
- BehaviorTrackingDataSource.ConnectionHandler, BehaviorTrackingDataSource.StatementHandler
- Enclosing class:
- BehaviorTrackingDataSource
protected abstract static class BehaviorTrackingDataSource.HandlerStub
- extends Object
- implements InvocationHandler
base class for proxy invocation handlers, which provides a typical implementation for "equals" and "hashcode"
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
target
protected Object target
BehaviorTrackingDataSource.HandlerStub
public BehaviorTrackingDataSource.HandlerStub(Object target)
invokeIdentity
protected final Object invokeIdentity(Object proxy,
String op,
Object[] args)
throws Throwable
- Standard implementation of equals / hashCode for proxy handlers. Returns a non-null result if
method
is an identity check that can be handled here; null otherwise.
- Throws:
Throwable
invokeTarget
protected final Object invokeTarget(Method method,
Object[] args)
throws Throwable
- Invoke
method
with args
on the delegate
object for this proxy. If the method invocation throws an InvocationTargetException,
throws the original application exception instead (generally more desirable
for a proxy).
- Returns:
- the value returned by the delegate
- Throws:
any
- exception thrown trying to invoke the method.
Throwable