public abstract class BaseEjbProxyHandler extends Object implements InvocationHandler, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Object |
clientIdentity |
RpcContainer |
container |
Object |
deploymentID |
boolean |
inProxyMap |
protected InterfaceType |
interfaceType |
protected boolean |
isInvalidReference |
Object |
primaryKey |
| Constructor and Description |
|---|
BaseEjbProxyHandler(BeanContext beanContext,
Object pk,
InterfaceType interfaceType,
List<Class> interfaces,
Class mainInterface) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
_invoke(Object proxy,
Class interfce,
Method method,
Object[] args) |
protected abstract Object |
_writeReplace(Object proxy) |
protected void |
checkAuthorization(Method method) |
protected Throwable |
convertException(Throwable e,
Method method,
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 Object[] |
copyArgs(Object[] objects) |
protected <T> T |
copyObj(T object) |
protected boolean |
equalHandler(BaseEjbProxyHandler other) |
boolean |
equals(Object obj) |
BeanContext |
getBeanContext() |
protected Throwable |
getCause(Throwable e) |
List<Class> |
getInterfaces() |
protected Class<?> |
getInvokedInterface(Method method)
This method should be called to determine the corresponding
business interface class to name as the invoking interface.
|
HashMap |
getLiveHandleRegistry() |
Class |
getMainInterface() |
abstract ProxyInfo |
getProxyInfo() |
int |
hashCode() |
protected void |
invalidateAllHandlers(Object key) |
void |
invalidateReference() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
boolean |
isValid() |
protected void |
registerHandler(Object key,
BaseEjbProxyHandler handler) |
void |
setBeanContext(BeanContext beanContext) |
protected void |
setDoCrossClassLoaderCopy(boolean doCrossClassLoaderCopy) |
protected void |
setDoIntraVmCopy(boolean doIntraVmCopy) |
void |
setIntraVmCopyMode(boolean on) |
String |
toString() |
public final Object deploymentID
public final Object primaryKey
protected final InterfaceType interfaceType
public boolean inProxyMap
public transient RpcContainer container
protected boolean isInvalidReference
protected Object clientIdentity
public BaseEjbProxyHandler(BeanContext beanContext, Object pk, InterfaceType interfaceType, List<Class> interfaces, Class mainInterface)
protected void setDoIntraVmCopy(boolean doIntraVmCopy)
protected void setDoCrossClassLoaderCopy(boolean doCrossClassLoaderCopy)
protected Class<?> getInvokedInterface(Method method)
method - Methodpublic Class getMainInterface()
protected void checkAuthorization(Method method) throws OpenEJBException
OpenEJBExceptionpublic void setIntraVmCopyMode(boolean on)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic boolean isValid()
protected Throwable convertException(Throwable e, Method method, Class interfce)
e - Throwablemethod - Methodinterfce - Classprotected boolean equalHandler(BaseEjbProxyHandler other)
protected abstract Object _invoke(Object proxy, Class interfce, Method method, Object[] args) throws Throwable
Throwableprotected Object[] copyArgs(Object[] objects) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected <T> T copyObj(T object)
throws IOException,
ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void invalidateReference()
protected void invalidateAllHandlers(Object key)
protected abstract Object _writeReplace(Object proxy) throws ObjectStreamException
ObjectStreamExceptionprotected void registerHandler(Object key, BaseEjbProxyHandler handler)
public abstract ProxyInfo getProxyInfo()
public BeanContext getBeanContext()
public void setBeanContext(BeanContext beanContext)
public HashMap getLiveHandleRegistry()
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.