org.apache.openejb.core.ivm
Class EjbObjectProxyHandler

java.lang.Object
  extended by org.apache.openejb.core.ivm.BaseEjbProxyHandler
      extended by org.apache.openejb.core.ivm.EjbObjectProxyHandler
All Implemented Interfaces:
Serializable, InvocationHandler
Direct Known Subclasses:
EntityEjbObjectHandler, StatefulEjbObjectHandler, StatelessEjbObjectHandler

public abstract class EjbObjectProxyHandler
extends BaseEjbProxyHandler

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.openejb.core.ivm.BaseEjbProxyHandler
container, deploymentID, doCrossClassLoaderCopy, doIntraVmCopy, inProxyMap, interfaceType, isInvalidReference, primaryKey
 
Constructor Summary
EjbObjectProxyHandler(DeploymentInfo deploymentInfo, Object pk, InterfaceType interfaceType, List<Class> interfaces)
           
 
Method Summary
 Object _invoke(Object p, Class interfce, Method m, Object[] a)
           
protected  Object _writeReplace(Object proxy)
           
protected  Object businessMethod(Class interfce, Method method, Object[] args, Object proxy)
           
static Object createProxy(DeploymentInfo deploymentInfo, Object primaryKey, InterfaceType interfaceType)
           
static Object createProxy(DeploymentInfo deploymentInfo, Object primaryKey, InterfaceType interfaceType, List<Class> interfaces)
           
protected  Object getEJBHome(Method method, Object[] args, Object proxy)
           
protected  Object getEJBLocalHome(Method method, Object[] args, Object proxy)
           
protected  Object getHandle(Method method, Object[] args, Object proxy)
           
protected abstract  Object getPrimaryKey(Method method, Object[] args, Object proxy)
           
 ProxyInfo getProxyInfo()
           
abstract  Object getRegistryId()
           
protected abstract  Object isIdentical(Method method, Object[] args, Object proxy)
           
protected abstract  Object remove(Class interfce, Method method, Object[] args, Object proxy)
           
 
Methods inherited from class org.apache.openejb.core.ivm.BaseEjbProxyHandler
checkAuthorization, convertException, copyArgs, copyObj, equals, getCause, getDeploymentInfo, getInterfaces, getInvokedInterface, getLiveHandleRegistry, getMainInterface, hashCode, invalidateAllHandlers, invalidateReference, invoke, registerHandler, setDeploymentInfo, setIntraVmCopyMode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EjbObjectProxyHandler

public EjbObjectProxyHandler(DeploymentInfo deploymentInfo,
                             Object pk,
                             InterfaceType interfaceType,
                             List<Class> interfaces)
Method Detail

getRegistryId

public abstract Object getRegistryId()

_invoke

public Object _invoke(Object p,
                      Class interfce,
                      Method m,
                      Object[] a)
               throws Throwable
Specified by:
_invoke in class BaseEjbProxyHandler
Throws:
Throwable

getEJBHome

protected Object getEJBHome(Method method,
                            Object[] args,
                            Object proxy)
                     throws Throwable
Throws:
Throwable

getEJBLocalHome

protected Object getEJBLocalHome(Method method,
                                 Object[] args,
                                 Object proxy)
                          throws Throwable
Throws:
Throwable

getHandle

protected Object getHandle(Method method,
                           Object[] args,
                           Object proxy)
                    throws Throwable
Throws:
Throwable

getProxyInfo

public ProxyInfo getProxyInfo()
Specified by:
getProxyInfo in class BaseEjbProxyHandler

_writeReplace

protected Object _writeReplace(Object proxy)
                        throws ObjectStreamException
Specified by:
_writeReplace in class BaseEjbProxyHandler
Throws:
ObjectStreamException

getPrimaryKey

protected abstract Object getPrimaryKey(Method method,
                                        Object[] args,
                                        Object proxy)
                                 throws Throwable
Throws:
Throwable

isIdentical

protected abstract Object isIdentical(Method method,
                                      Object[] args,
                                      Object proxy)
                               throws Throwable
Throws:
Throwable

remove

protected abstract Object remove(Class interfce,
                                 Method method,
                                 Object[] args,
                                 Object proxy)
                          throws Throwable
Throws:
Throwable

businessMethod

protected Object businessMethod(Class interfce,
                                Method method,
                                Object[] args,
                                Object proxy)
                         throws Throwable
Throws:
Throwable

createProxy

public static Object createProxy(DeploymentInfo deploymentInfo,
                                 Object primaryKey,
                                 InterfaceType interfaceType)

createProxy

public static Object createProxy(DeploymentInfo deploymentInfo,
                                 Object primaryKey,
                                 InterfaceType interfaceType,
                                 List<Class> interfaces)


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.