public abstract class BaseEjbProxyHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
clientIdentity |
RpcContainer |
container |
java.lang.Object |
deploymentID |
boolean |
inProxyMap |
protected InterfaceType |
interfaceType |
protected boolean |
isInvalidReference |
java.lang.Object |
primaryKey |
Constructor and Description |
---|
BaseEjbProxyHandler(BeanContext beanContext,
java.lang.Object pk,
InterfaceType interfaceType,
java.util.List<java.lang.Class> interfaces,
java.lang.Class mainInterface) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.Object |
_invoke(java.lang.Object proxy,
java.lang.Class interfce,
java.lang.reflect.Method method,
java.lang.Object[] args) |
protected abstract java.lang.Object |
_writeReplace(java.lang.Object proxy) |
protected void |
checkAuthorization(java.lang.reflect.Method method) |
protected java.lang.Throwable |
convertException(java.lang.Throwable e,
java.lang.reflect.Method method,
java.lang.Class interfce)
Renamed method so it shows up with a much more understandable purpose as it
will be the top element in the stacktrace
|
protected java.lang.Object[] |
copyArgs(java.lang.Object[] objects) |
protected <T> T |
copyObj(T object) |
protected boolean |
equalHandler(BaseEjbProxyHandler other) |
boolean |
equals(java.lang.Object obj) |
BeanContext |
getBeanContext() |
protected java.lang.Throwable |
getCause(java.lang.Throwable e) |
java.util.List<java.lang.Class> |
getInterfaces() |
protected java.lang.Class<?> |
getInvokedInterface(java.lang.reflect.Method method)
This method should be called to determine the corresponding
business interface class to name as the invoking interface.
|
java.util.concurrent.ConcurrentMap |
getLiveHandleRegistry() |
java.lang.Class |
getMainInterface() |
abstract ProxyInfo |
getProxyInfo() |
int |
hashCode() |
protected void |
invalidateAllHandlers(java.lang.Object key) |
void |
invalidateReference() |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
boolean |
isValid() |
protected void |
registerHandler(java.lang.Object key,
BaseEjbProxyHandler handler) |
void |
setBeanContext(BeanContext beanContext) |
protected void |
setDoCrossClassLoaderCopy(boolean doCrossClassLoaderCopy) |
protected void |
setDoIntraVmCopy(boolean doIntraVmCopy) |
void |
setIntraVmCopyMode(boolean on) |
java.lang.String |
toString() |
public final java.lang.Object deploymentID
public final java.lang.Object primaryKey
protected final InterfaceType interfaceType
public boolean inProxyMap
public transient RpcContainer container
protected boolean isInvalidReference
protected java.lang.Object clientIdentity
public BaseEjbProxyHandler(BeanContext beanContext, java.lang.Object pk, InterfaceType interfaceType, java.util.List<java.lang.Class> interfaces, java.lang.Class mainInterface)
protected void setDoIntraVmCopy(boolean doIntraVmCopy)
protected void setDoCrossClassLoaderCopy(boolean doCrossClassLoaderCopy)
protected java.lang.Class<?> getInvokedInterface(java.lang.reflect.Method method)
method
- Methodpublic java.lang.Class getMainInterface()
public java.util.List<java.lang.Class> getInterfaces()
protected void checkAuthorization(java.lang.reflect.Method method) throws OpenEJBException
OpenEJBException
public void setIntraVmCopyMode(boolean on)
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 java.lang.reflect.InvocationHandler
java.lang.Throwable
public boolean isValid()
protected java.lang.Throwable convertException(java.lang.Throwable e, java.lang.reflect.Method method, java.lang.Class interfce)
e
- Throwablemethod
- Methodinterfce
- Classprotected java.lang.Throwable getCause(java.lang.Throwable e)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected boolean equalHandler(BaseEjbProxyHandler other)
protected abstract java.lang.Object _invoke(java.lang.Object proxy, java.lang.Class interfce, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
java.lang.Throwable
protected java.lang.Object[] copyArgs(java.lang.Object[] objects) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
protected <T> T copyObj(T object) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void invalidateReference()
protected void invalidateAllHandlers(java.lang.Object key)
protected abstract java.lang.Object _writeReplace(java.lang.Object proxy) throws java.io.ObjectStreamException
java.io.ObjectStreamException
protected void registerHandler(java.lang.Object key, BaseEjbProxyHandler handler)
public abstract ProxyInfo getProxyInfo()
public BeanContext getBeanContext()
public void setBeanContext(BeanContext beanContext)
public java.util.concurrent.ConcurrentMap getLiveHandleRegistry()