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:
Serializable, 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(BeanContext beanContext, InterfaceType interfaceType, List<Class> interfaces, Class mainInterface)
           
 
Method Summary
protected  Object _invoke(Object proxy, Class interfce, Method method, Object[] args)
           
protected  Object _writeReplace(Object proxy)
           
protected  Object create(Class interfce, Method method, Object[] args, Object proxy)
           
protected static EjbHomeProxyHandler createHomeHandler(BeanContext beanContext, InterfaceType interfaceType, List<Class> interfaces, Class mainInterface)
           
static Object createHomeProxy(BeanContext beanContext, InterfaceType interfaceType)
           
static Object createHomeProxy(BeanContext beanContext, InterfaceType interfaceType, List<Class> objectInterfaces, Class mainInterface)
           
 Object createProxy(Object primaryKey, Class mainInterface)
           
protected abstract  Object findX(Class interfce, Method method, Object[] args, Object proxy)
           
protected  Object getEJBMetaData(Method method, Object[] args, Object proxy)
           
protected  Object getHomeHandle(Method method, Object[] args, Object proxy)
           
 ProxyInfo getProxyInfo()
           
protected  Object homeMethod(Class interfce, Method method, Object[] args, Object proxy)
           
 void invalidateReference()
           
protected abstract  EjbObjectProxyHandler newEjbObjectHandler(BeanContext beanContext, Object pk, InterfaceType interfaceType, List<Class> interfaces, Class mainInterface)
           
protected abstract  Object removeByPrimaryKey(Class interfce, Method method, Object[] args, Object proxy)
           
protected  Object removeWithHandle(Class interfce, Method method, Object[] args, Object proxy)
           
 
Methods inherited from class org.apache.openejb.core.ivm.BaseEjbProxyHandler
checkAuthorization, convertException, copyArgs, copyObj, equalHandler, equals, getBeanContext, getCause, getInterfaces, getInvocationHandler, getInvokedInterface, getLiveHandleRegistry, getMainInterface, hashCode, invalidateAllHandlers, invoke, registerHandler, setBeanContext, 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(BeanContext beanContext,
                           InterfaceType interfaceType,
                           List<Class> interfaces,
                           Class mainInterface)
Method Detail

invalidateReference

public void invalidateReference()
Overrides:
invalidateReference in class BaseEjbProxyHandler

createHomeHandler

protected static EjbHomeProxyHandler createHomeHandler(BeanContext beanContext,
                                                       InterfaceType interfaceType,
                                                       List<Class> interfaces,
                                                       Class mainInterface)

createHomeProxy

public static Object createHomeProxy(BeanContext beanContext,
                                     InterfaceType interfaceType)

createHomeProxy

public static Object createHomeProxy(BeanContext beanContext,
                                     InterfaceType interfaceType,
                                     List<Class> objectInterfaces,
                                     Class mainInterface)

createProxy

public Object createProxy(Object primaryKey,
                          Class mainInterface)

newEjbObjectHandler

protected abstract EjbObjectProxyHandler newEjbObjectHandler(BeanContext beanContext,
                                                             Object pk,
                                                             InterfaceType interfaceType,
                                                             List<Class> interfaces,
                                                             Class mainInterface)

_invoke

protected Object _invoke(Object proxy,
                         Class interfce,
                         Method method,
                         Object[] args)
                  throws Throwable
Specified by:
_invoke in class BaseEjbProxyHandler
Throws:
Throwable

homeMethod

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

create

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

findX

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

getEJBMetaData

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

getHomeHandle

protected Object getHomeHandle(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

removeWithHandle

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

removeByPrimaryKey

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


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.