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, ManagedObjectHandler, SingletonEjbObjectHandler, StatefulEjbObjectHandler, StatelessEjbObjectHandler

public abstract class EjbObjectProxyHandler
extends BaseEjbProxyHandler

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.openejb.core.ivm.BaseEjbProxyHandler
clientIdentity, container, deploymentID, inProxyMap, interfaceType, isInvalidReference, primaryKey
 
Constructor Summary
EjbObjectProxyHandler(BeanContext beanContext, Object pk, InterfaceType interfaceType, List<Class> interfaces, Class mainInterface)
           
 
Method Summary
 Object _invoke(Object p, Class interfce, Method m, Object[] a)
           
protected  Object _writeReplace(Object proxy)
           
protected  Object asynchronizedBusinessMethod(Class<?> interfce, Method method, Object[] args, Object proxy)
           
protected  Object businessMethod(Class<?> interfce, Method method, Object[] args, Object proxy)
           
static Object createProxy(BeanContext beanContext, Object primaryKey, InterfaceType interfaceType, Class mainInterface)
           
static Object createProxy(BeanContext beanContext, Object primaryKey, InterfaceType interfaceType, List<Class> interfaces, Class mainInterface)
           
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)
           
protected  Object synchronizedBusinessMethod(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, invalidateReference, invoke, registerHandler, setBeanContext, setDoCrossClassLoaderCopy, setDoIntraVmCopy, setIntraVmCopyMode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EjbObjectProxyHandler

public EjbObjectProxyHandler(BeanContext beanContext,
                             Object pk,
                             InterfaceType interfaceType,
                             List<Class> interfaces,
                             Class mainInterface)
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

asynchronizedBusinessMethod

protected Object asynchronizedBusinessMethod(Class<?> interfce,
                                             Method method,
                                             Object[] args,
                                             Object proxy)
                                      throws Throwable
Throws:
Throwable

synchronizedBusinessMethod

protected Object synchronizedBusinessMethod(Class<?> interfce,
                                            Method method,
                                            Object[] args,
                                            Object proxy)
                                     throws Throwable
Throws:
Throwable

createProxy

public static Object createProxy(BeanContext beanContext,
                                 Object primaryKey,
                                 InterfaceType interfaceType,
                                 Class mainInterface)

createProxy

public static Object createProxy(BeanContext beanContext,
                                 Object primaryKey,
                                 InterfaceType interfaceType,
                                 List<Class> interfaces,
                                 Class mainInterface)


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