com.mtgi.analytics.sql
Class BehaviorTrackingDataSource.HandlerStub

java.lang.Object
  extended by 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"


Field Summary
protected  Object target
           
 
Constructor Summary
BehaviorTrackingDataSource.HandlerStub(Object target)
           
 
Method Summary
protected  Object invokeIdentity(Object proxy, String op, Object[] args)
          Standard implementation of equals / hashCode for proxy handlers.
protected  Object invokeTarget(Method method, Object[] args)
          Invoke method with args on the delegate object for this proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.reflect.InvocationHandler
invoke
 

Field Detail

target

protected Object target
Constructor Detail

BehaviorTrackingDataSource.HandlerStub

public BehaviorTrackingDataSource.HandlerStub(Object target)
Method Detail

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