public abstract class EJBInvocationHandler extends java.lang.Object implements InvocationHandler, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected JNDIContext.AuthenticationInfo |
authenticationInfo |
protected ClientMetaData |
client |
protected EJBMetaDataImpl |
ejb |
protected static java.lang.reflect.Method |
EQUALS |
protected static java.lang.reflect.Method |
HASHCODE |
protected boolean |
inProxyMap |
protected java.util.concurrent.atomic.AtomicBoolean |
isInvalidReference |
protected static java.util.concurrent.ConcurrentMap<java.lang.Object,java.util.Set<java.lang.ref.WeakReference<EJBInvocationHandler>>> |
liveHandleRegistry |
protected java.lang.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 java.lang.reflect.Method |
TOSTRING |
Constructor and Description |
---|
EJBInvocationHandler() |
EJBInvocationHandler(EJBMetaDataImpl ejb,
ServerMetaData server,
ClientMetaData client,
JNDIContext.AuthenticationInfo auth) |
EJBInvocationHandler(EJBMetaDataImpl ejb,
ServerMetaData server,
ClientMetaData client,
java.lang.Object primaryKey,
JNDIContext.AuthenticationInfo auth) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.Object |
_invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
protected java.lang.Throwable |
convertException(java.lang.Throwable e,
java.lang.reflect.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 java.lang.Throwable |
getCause(java.lang.Throwable e) |
ClientMetaData |
getClient() |
protected java.lang.Object |
getClientIdentity() |
EJBMetaDataImpl |
getEjb() |
protected static java.lang.reflect.Method |
getMethod(java.lang.Class c,
java.lang.String method,
java.lang.Class... params) |
java.lang.Object |
getPrimaryKey() |
ServerMetaData |
getServer() |
protected static void |
invalidateAllHandlers(java.lang.Object key) |
protected void |
invalidateReference() |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object... args) |
protected static void |
registerHandler(java.lang.Object key,
EJBInvocationHandler handler) |
protected EJBResponse |
request(EJBRequest req) |
protected EJBResponse |
request(EJBRequest req,
EJBResponse res) |
protected static final java.lang.reflect.Method EQUALS
protected static final java.lang.reflect.Method HASHCODE
protected static final java.lang.reflect.Method TOSTRING
protected static final java.util.concurrent.ConcurrentMap<java.lang.Object,java.util.Set<java.lang.ref.WeakReference<EJBInvocationHandler>>> liveHandleRegistry
protected transient boolean inProxyMap
protected transient java.util.concurrent.atomic.AtomicBoolean isInvalidReference
protected transient EJBRequest request
protected transient EJBMetaDataImpl ejb
protected transient ServerMetaData server
protected transient ClientMetaData client
protected transient java.lang.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, java.lang.Object primaryKey, JNDIContext.AuthenticationInfo auth)
public EJBMetaDataImpl getEjb()
public ServerMetaData getServer()
public ClientMetaData getClient()
public java.lang.Object getPrimaryKey()
protected static java.lang.reflect.Method getMethod(java.lang.Class c, java.lang.String method, java.lang.Class... params)
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object... args) throws java.lang.Throwable
invoke
in interface InvocationHandler
java.lang.Throwable
protected abstract java.lang.Object _invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
java.lang.Throwable
protected EJBResponse request(EJBRequest req) throws java.lang.Exception
java.lang.Exception
protected EJBResponse request(EJBRequest req, EJBResponse res) throws java.lang.Exception
java.lang.Exception
protected java.lang.Object getClientIdentity()
protected void invalidateReference()
protected static void invalidateAllHandlers(java.lang.Object key)
protected static void registerHandler(java.lang.Object key, EJBInvocationHandler handler)
protected java.lang.Throwable convertException(java.lang.Throwable e, java.lang.reflect.Method method)
e
- Throwablemethod
- Methodprotected static java.lang.Throwable getCause(java.lang.Throwable e)