Package com.sun.ejb.containers
Class EJBLocalHomeInvocationHandler
- java.lang.Object
-
- com.sun.ejb.containers.EJBLocalHomeImpl
-
- com.sun.ejb.containers.EJBLocalHomeInvocationHandler
-
- All Implemented Interfaces:
IndirectlySerializable
,jakarta.ejb.EJBLocalHome
,InvocationHandler
- Direct Known Subclasses:
EntityBeanLocalHomeImpl
public class EJBLocalHomeInvocationHandler extends EJBLocalHomeImpl implements InvocationHandler
Handler for EJBLocalHome invocations through EJBLocalHome proxy.- Author:
- Kenneth Saks
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.ejb.containers.EJBLocalHomeImpl
EJBLocalHomeImpl.SerializableLocalHome
-
-
Field Summary
-
Fields inherited from class com.sun.ejb.containers.EJBLocalHomeImpl
container
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EJBLocalHomeInvocationHandler(EjbDescriptor ejbDescriptor, Class localHomeIntf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected jakarta.ejb.EJBLocalHome
getEJBLocalHome()
Get the EJBLocalHome corresponding to an EJBLocalHomeImpl.protected boolean
handleSpecialEJBLocalHomeMethod(Method method, Class methodClass)
Object
invoke(Object proxy, Method method, Object[] args)
Called by EJBLocalHome proxy.protected Object
invokeSpecialEJBLocalHomeMethod(Method method, Class methodClass, Object[] args)
protected Object
invokeTargetBeanMethod(BaseContainer container, Method beanClassMethod, EjbInvocation inv, Object target, Object[] params)
protected void
postCreate(Container container, EjbInvocation inv, InvocationInfo invInfo, Object primaryKey, Object[] args)
void
setMethodMap(MethodMap map)
void
setProxy(jakarta.ejb.EJBLocalHome proxy)
-
Methods inherited from class com.sun.ejb.containers.EJBLocalHomeImpl
createEJBLocalBusinessObjectImpl, createEJBLocalObjectImpl, getContainer, getSerializableObjectFactory, remove
-
-
-
-
Constructor Detail
-
EJBLocalHomeInvocationHandler
protected EJBLocalHomeInvocationHandler(EjbDescriptor ejbDescriptor, Class localHomeIntf) throws Exception
- Throws:
Exception
-
-
Method Detail
-
setMethodMap
public void setMethodMap(MethodMap map)
-
setProxy
public void setProxy(jakarta.ejb.EJBLocalHome proxy)
-
getEJBLocalHome
protected jakarta.ejb.EJBLocalHome getEJBLocalHome()
Description copied from class:EJBLocalHomeImpl
Get the EJBLocalHome corresponding to an EJBLocalHomeImpl. These objects are one and the same when the local home is generated, but distinct in the case of dynamic proxies. Therefore, code can't assume it can cast an EJBLocalHomeImpl to the EJBLocalHome that the client uses, and vice-versa. This is overridden in the InvocationHandler.- Overrides:
getEJBLocalHome
in classEJBLocalHomeImpl
-
invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
Called by EJBLocalHome proxy.- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
handleSpecialEJBLocalHomeMethod
protected boolean handleSpecialEJBLocalHomeMethod(Method method, Class methodClass)
-
invokeSpecialEJBLocalHomeMethod
protected Object invokeSpecialEJBLocalHomeMethod(Method method, Class methodClass, Object[] args) throws Throwable
- Throws:
Throwable
-
postCreate
protected void postCreate(Container container, EjbInvocation inv, InvocationInfo invInfo, Object primaryKey, Object[] args) throws Throwable
- Throws:
Throwable
-
invokeTargetBeanMethod
protected Object invokeTargetBeanMethod(BaseContainer container, Method beanClassMethod, EjbInvocation inv, Object target, Object[] params) throws Throwable
- Throws:
Throwable
-
-