public abstract class EJBInvocationHandler extends Object implements InvocationHandler, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected JNDIContext.AuthenticationInfo |
authenticationInfo |
protected ClientMetaData |
client |
protected EJBMetaDataImpl |
ejb |
protected static Method |
EQUALS |
protected static Method |
HASHCODE |
protected boolean |
inProxyMap |
protected AtomicBoolean |
isInvalidReference |
protected static ConcurrentMap<Object,Set<WeakReference<EJBInvocationHandler>>> |
liveHandleRegistry |
protected Object |
primaryKey |
protected boolean |
remote
The EJB spec requires that a different set of exceptions
be thrown for the legacy EJBObject and EJBHome interfaces
than newer @Remote interfaces
|
protected EJBRequest |
request |
protected ServerMetaData |
server |
protected static Method |
TOSTRING |
| Constructor and Description |
|---|
EJBInvocationHandler() |
EJBInvocationHandler(EJBMetaDataImpl ejb,
ServerMetaData server,
ClientMetaData client,
JNDIContext.AuthenticationInfo auth) |
EJBInvocationHandler(EJBMetaDataImpl ejb,
ServerMetaData server,
ClientMetaData client,
Object primaryKey,
JNDIContext.AuthenticationInfo auth) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
_invoke(Object proxy,
Method method,
Object[] args) |
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
|
protected static Throwable |
getCause(Throwable e) |
ClientMetaData |
getClient() |
protected Object |
getClientIdentity() |
EJBMetaDataImpl |
getEjb() |
protected static Method |
getMethod(Class c,
String method,
Class... params) |
Object |
getPrimaryKey() |
ServerMetaData |
getServer() |
protected static void |
invalidateAllHandlers(Object key) |
protected void |
invalidateReference() |
Object |
invoke(Object proxy,
Method method,
Object... args) |
protected static void |
registerHandler(Object key,
EJBInvocationHandler handler) |
protected EJBResponse |
request(EJBRequest req) |
protected EJBResponse |
request(EJBRequest req,
EJBResponse res) |
protected static final Method EQUALS
protected static final Method HASHCODE
protected static final Method TOSTRING
protected static final ConcurrentMap<Object,Set<WeakReference<EJBInvocationHandler>>> liveHandleRegistry
protected transient boolean inProxyMap
protected transient AtomicBoolean isInvalidReference
protected transient EJBRequest request
protected transient EJBMetaDataImpl ejb
protected transient ServerMetaData server
protected transient ClientMetaData client
protected transient Object primaryKey
protected transient JNDIContext.AuthenticationInfo authenticationInfo
protected final boolean remote
public EJBInvocationHandler()
public EJBInvocationHandler(EJBMetaDataImpl ejb, ServerMetaData server, ClientMetaData client, JNDIContext.AuthenticationInfo auth)
public EJBInvocationHandler(EJBMetaDataImpl ejb, ServerMetaData server, ClientMetaData client, Object primaryKey, JNDIContext.AuthenticationInfo auth)
public EJBMetaDataImpl getEjb()
public ServerMetaData getServer()
public ClientMetaData getClient()
public Object getPrimaryKey()
public Object invoke(Object proxy, Method method, Object... args) throws Throwable
invoke in interface InvocationHandlerThrowableprotected abstract Object _invoke(Object proxy, Method method, Object[] args) throws Throwable
Throwableprotected EJBResponse request(EJBRequest req) throws Exception
Exceptionprotected EJBResponse request(EJBRequest req, EJBResponse res) throws Exception
Exceptionprotected Object getClientIdentity()
protected void invalidateReference()
protected static void invalidateAllHandlers(Object key)
protected static void registerHandler(Object key, EJBInvocationHandler handler)
protected Throwable convertException(Throwable e, Method method)
e - Throwablemethod - MethodCopyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.