org.apache.openejb.client
Class EJBInvocationHandler
java.lang.Object
org.apache.openejb.client.EJBInvocationHandler
- All Implemented Interfaces:
- Serializable, InvocationHandler
- Direct Known Subclasses:
- EJBHomeHandler, EJBObjectHandler
public abstract class EJBInvocationHandler
- extends Object
- implements InvocationHandler, Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EQUALS
protected static final Method EQUALS
HASHCODE
protected static final Method HASHCODE
TOSTRING
protected static final Method TOSTRING
liveHandleRegistry
protected static final ConcurrentMap<Object,Set<WeakReference<EJBInvocationHandler>>> liveHandleRegistry
inProxyMap
protected transient boolean inProxyMap
isInvalidReference
protected transient AtomicBoolean isInvalidReference
request
protected transient EJBRequest request
ejb
protected transient EJBMetaDataImpl ejb
server
protected transient ServerMetaData server
client
protected transient ClientMetaData client
primaryKey
protected transient Object primaryKey
remote
protected final boolean remote
EJBInvocationHandler
public EJBInvocationHandler()
EJBInvocationHandler
public EJBInvocationHandler(EJBMetaDataImpl ejb,
ServerMetaData server,
ClientMetaData client)
EJBInvocationHandler
public EJBInvocationHandler(EJBMetaDataImpl ejb,
ServerMetaData server,
ClientMetaData client,
Object primaryKey)
getEjb
public EJBMetaDataImpl getEjb()
getServer
public ServerMetaData getServer()
getClient
public ClientMetaData getClient()
getPrimaryKey
public Object getPrimaryKey()
getMethod
protected static Method getMethod(Class c,
String method,
Class... params)
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable
_invoke
protected abstract Object _invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Throws:
Throwable
request
protected EJBResponse request(EJBRequest req)
throws Exception
- Throws:
Exception
getClientIdentity
protected Object getClientIdentity()
invalidateReference
protected void invalidateReference()
invalidateAllHandlers
protected static void invalidateAllHandlers(Object key)
registerHandler
protected static void registerHandler(Object key,
EJBInvocationHandler handler)
convertException
protected Throwable convertException(Throwable e,
Method method)
- Renamed method so it shows up with a much more understandable purpose as it
will be the top element in the stacktrace
- Parameters:
e
- method
-
getCause
protected static Throwable getCause(Throwable e)
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.