org.apache.openejb.core.ivm
Class EjbObjectProxyHandler
java.lang.Object
org.apache.openejb.core.ivm.BaseEjbProxyHandler
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
|
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(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)
|
| Methods inherited from class org.apache.openejb.core.ivm.BaseEjbProxyHandler |
checkAuthorization, convertException, copyArgs, copyObj, equalHandler, equals, getBeanContext, getCause, getInterfaces, getInvokedInterface, getLiveHandleRegistry, getMainInterface, hashCode, invalidateAllHandlers, invalidateReference, invoke, registerHandler, setBeanContext, setDoCrossClassLoaderCopy, setDoIntraVmCopy, setIntraVmCopyMode, toString |
EjbObjectProxyHandler
public EjbObjectProxyHandler(BeanContext beanContext,
Object pk,
InterfaceType interfaceType,
List<Class> interfaces,
Class mainInterface)
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
synchronizedBusinessMethod
protected Object synchronizedBusinessMethod(Class<?> interfce,
Method method,
Object[] args)
throws OpenEJBException
- Throws:
OpenEJBException
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-2012 The Apache Software Foundation. All Rights Reserved.