org.jboss.ejb.plugins.cmp.bridge
Class EntityBridgeInvocationHandler
java.lang.Object
org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler
- All Implemented Interfaces:
- InvocationHandler (src)
- public class EntityBridgeInvocationHandler
- extends java.lang.Object
- implements InvocationHandler (src)
EntityBridgeInvocationHandler is the invocation hander used by the CMP 2.x
dynamic proxy. This class only interacts with the EntityBridge. The main
job of this class is to deligate invocation of abstract methods to the
appropriate EntityBridge method.
Life-cycle:
Tied to the life-cycle of an entity bean instance.
Multiplicity:
One per cmp entity bean instance, including beans in pool.
Constructor Summary |
EntityBridgeInvocationHandler(java.util.Map fieldMap,
java.util.Map selectorMap,
java.lang.Class beanClass)
Creates an invocation handler for the specified entity. |
Method Summary |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Processes a method invocation on a proxy instance and returns the
result. |
void |
setContext(EntityEnterpriseContext (src) ctx)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityBridgeInvocationHandler
public EntityBridgeInvocationHandler(java.util.Map fieldMap,
java.util.Map selectorMap,
java.lang.Class beanClass)
- Creates an invocation handler for the specified entity.
setContext
public void setContext(EntityEnterpriseContext (src) ctx)
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws FinderException (src)
- Description copied from interface:
InvocationHandler (src)
- Processes a method invocation on a proxy instance and returns the
result.
- Specified by:
invoke
in interface InvocationHandler (src)
- Parameters:
proxy
- ???method
- The method instance corresponding to the interface
method invoked on the proxy instance.args
- An array of objects containing the values of the
arguments passed in the method invocation on the proxy
instance, or null if interface method takes no
arguments.
- Returns:
- The value to return from the method invocation on
the proxy instance.
- Throws:
FinderException (src)