org.apache.openejb.core.ivm
Class EjbHomeProxyHandler

java.lang.Object
  extended by org.apache.openejb.core.ivm.BaseEjbProxyHandler
      extended by org.apache.openejb.core.ivm.EjbHomeProxyHandler
All Implemented Interfaces:
java.io.Serializable, java.lang.reflect.InvocationHandler
Direct Known Subclasses:
EntityEjbHomeHandler, ManagedHomeHandler, SingletonEjbHomeHandler, StatefulEjbHomeHandler, StatelessEjbHomeHandler

public abstract class EjbHomeProxyHandler
extends BaseEjbProxyHandler

See Also:
Serialized Form

Field Summary
static Logger logger
           
 
Fields inherited from class org.apache.openejb.core.ivm.BaseEjbProxyHandler
clientIdentity, container, deploymentID, inProxyMap, interfaceType, isInvalidReference, primaryKey
 
Constructor Summary
EjbHomeProxyHandler(DeploymentInfo deploymentInfo, InterfaceType interfaceType, java.util.List<java.lang.Class> interfaces)
           
 
Method Summary
protected  java.lang.Object _invoke(java.lang.Object proxy, java.lang.Class interfce, java.lang.reflect.Method method, java.lang.Object[] args)
           
protected  java.lang.Object _writeReplace(java.lang.Object proxy)
           
protected  java.lang.Object create(java.lang.Class interfce, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object proxy)
           
protected static EjbHomeProxyHandler createHomeHandler(DeploymentInfo deploymentInfo, InterfaceType interfaceType, java.util.List<java.lang.Class> interfaces)
           
static java.lang.Object createHomeProxy(DeploymentInfo deploymentInfo, InterfaceType interfaceType)
           
static java.lang.Object createHomeProxy(DeploymentInfo deploymentInfo, InterfaceType interfaceType, java.util.List<java.lang.Class> objectInterfaces)
           
 java.lang.Object createProxy(java.lang.Object primaryKey)
           
protected abstract  java.lang.Object findX(java.lang.Class interfce, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object proxy)
           
protected  java.lang.Object getEJBMetaData(java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object proxy)
           
protected  java.lang.Object getHomeHandle(java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object proxy)
           
 ProxyInfo getProxyInfo()
           
protected  java.lang.Object homeMethod(java.lang.Class interfce, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object proxy)
           
 void invalidateReference()
           
protected abstract  EjbObjectProxyHandler newEjbObjectHandler(DeploymentInfo deploymentInfo, java.lang.Object pk, InterfaceType interfaceType, java.util.List<java.lang.Class> interfaces)
           
protected abstract  java.lang.Object removeByPrimaryKey(java.lang.Class interfce, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object proxy)
           
protected  java.lang.Object removeWithHandle(java.lang.Class interfce, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object proxy)
           
 
Methods inherited from class org.apache.openejb.core.ivm.BaseEjbProxyHandler
checkAuthorization, convertException, copyArgs, copyObj, equals, getCause, getDeploymentInfo, getInterfaces, getInvocationHandler, getInvokedInterface, getLiveHandleRegistry, getMainInterface, hashCode, invalidateAllHandlers, invoke, registerHandler, setDeploymentInfo, setDoCrossClassLoaderCopy, setDoIntraVmCopy, setIntraVmCopyMode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

public static final Logger logger
Constructor Detail

EjbHomeProxyHandler

public EjbHomeProxyHandler(DeploymentInfo deploymentInfo,
                           InterfaceType interfaceType,
                           java.util.List<java.lang.Class> interfaces)
Method Detail

invalidateReference

public void invalidateReference()
Overrides:
invalidateReference in class BaseEjbProxyHandler

createHomeHandler

protected static EjbHomeProxyHandler createHomeHandler(DeploymentInfo deploymentInfo,
                                                       InterfaceType interfaceType,
                                                       java.util.List<java.lang.Class> interfaces)

createHomeProxy

public static java.lang.Object createHomeProxy(DeploymentInfo deploymentInfo,
                                               InterfaceType interfaceType)

createHomeProxy

public static java.lang.Object createHomeProxy(DeploymentInfo deploymentInfo,
                                               InterfaceType interfaceType,
                                               java.util.List<java.lang.Class> objectInterfaces)

createProxy

public java.lang.Object createProxy(java.lang.Object primaryKey)

newEjbObjectHandler

protected abstract EjbObjectProxyHandler newEjbObjectHandler(DeploymentInfo deploymentInfo,
                                                             java.lang.Object pk,
                                                             InterfaceType interfaceType,
                                                             java.util.List<java.lang.Class> interfaces)

_invoke

protected 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
Specified by:
_invoke in class BaseEjbProxyHandler
Throws:
java.lang.Throwable

homeMethod

protected java.lang.Object homeMethod(java.lang.Class interfce,
                                      java.lang.reflect.Method method,
                                      java.lang.Object[] args,
                                      java.lang.Object proxy)
                               throws java.lang.Throwable
Throws:
java.lang.Throwable

create

protected java.lang.Object create(java.lang.Class interfce,
                                  java.lang.reflect.Method method,
                                  java.lang.Object[] args,
                                  java.lang.Object proxy)
                           throws java.lang.Throwable
Throws:
java.lang.Throwable

findX

protected abstract java.lang.Object findX(java.lang.Class interfce,
                                          java.lang.reflect.Method method,
                                          java.lang.Object[] args,
                                          java.lang.Object proxy)
                                   throws java.lang.Throwable
Throws:
java.lang.Throwable

getEJBMetaData

protected java.lang.Object getEJBMetaData(java.lang.reflect.Method method,
                                          java.lang.Object[] args,
                                          java.lang.Object proxy)
                                   throws java.lang.Throwable
Throws:
java.lang.Throwable

getHomeHandle

protected java.lang.Object getHomeHandle(java.lang.reflect.Method method,
                                         java.lang.Object[] args,
                                         java.lang.Object proxy)
                                  throws java.lang.Throwable
Throws:
java.lang.Throwable

getProxyInfo

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

_writeReplace

protected java.lang.Object _writeReplace(java.lang.Object proxy)
                                  throws java.io.ObjectStreamException
Specified by:
_writeReplace in class BaseEjbProxyHandler
Throws:
java.io.ObjectStreamException

removeWithHandle

protected java.lang.Object removeWithHandle(java.lang.Class interfce,
                                            java.lang.reflect.Method method,
                                            java.lang.Object[] args,
                                            java.lang.Object proxy)
                                     throws java.lang.Throwable
Throws:
java.lang.Throwable

removeByPrimaryKey

protected abstract java.lang.Object removeByPrimaryKey(java.lang.Class interfce,
                                                       java.lang.reflect.Method method,
                                                       java.lang.Object[] args,
                                                       java.lang.Object proxy)
                                                throws java.lang.Throwable
Throws:
java.lang.Throwable


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