com.ibm.di.util
Class RecordAL
java.lang.Object
com.ibm.di.util.RecordAL
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class RecordAL
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
This class interposes connectors to record and playback all operations
performed by the connector. Every method call is intercepted and the result
is stored in a table for later playback.
The table is created by using the StoreFactory requesting a table name of
"SANDBOX_".
Method Summary |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method m,
java.lang.Object[] args)
This method is called for every method call to the target object. |
static java.lang.Object |
newInstance(java.lang.String prefix,
java.lang.Object obj,
java.lang.String database,
boolean record)
Utility method to return a new proxy instance for a given object. |
static java.lang.Object |
newInstance(java.lang.String prefix,
java.lang.Object obj,
java.lang.String database,
boolean record,
java.lang.Class<?>[] interfaces)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newInstance
public static java.lang.Object newInstance(java.lang.String prefix,
java.lang.Object obj,
java.lang.String database,
boolean record)
- Utility method to return a new proxy instance for a given object.
- Parameters:
obj
- The java object to interpose.
- Returns:
- A proxy object interposing obj
newInstance
public static java.lang.Object newInstance(java.lang.String prefix,
java.lang.Object obj,
java.lang.String database,
boolean record,
java.lang.Class<?>[] interfaces)
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method m,
java.lang.Object[] args)
throws java.lang.Throwable
- This method is called for every method call to the target object.
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable