Package com.sun.ejb.containers
Class EJBLocalHomeInvocationHandler
- java.lang.Object
-
- com.sun.ejb.containers.EJBLocalHomeImpl
-
- com.sun.ejb.containers.EJBLocalHomeInvocationHandler
-
- All Implemented Interfaces:
com.sun.enterprise.container.common.spi.util.IndirectlySerializable,jakarta.ejb.EJBLocalHome,InvocationHandler
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 protectedEJBLocalHomeInvocationHandler(com.sun.enterprise.deployment.EjbDescriptor ejbDescriptor, Class localHomeIntf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected jakarta.ejb.EJBLocalHomegetEJBLocalHome()Get the EJBLocalHome corresponding to an EJBLocalHomeImpl.protected booleanhandleSpecialEJBLocalHomeMethod(Method method, Class methodClass)Objectinvoke(Object proxy, Method method, Object[] args)Called by EJBLocalHome proxy.protected ObjectinvokeSpecialEJBLocalHomeMethod(Method method, Class methodClass, Object[] args)protected ObjectinvokeTargetBeanMethod(BaseContainer container, Method beanClassMethod, EjbInvocation inv, Object target, Object[] params)protected voidpostCreate(Container container, EjbInvocation inv, InvocationInfo invInfo, Object primaryKey, Object[] args)voidsetMethodMap(MethodMap map)voidsetProxy(jakarta.ejb.EJBLocalHome proxy)-
Methods inherited from class com.sun.ejb.containers.EJBLocalHomeImpl
createEJBLocalBusinessObjectImpl, createEJBLocalObjectImpl, getContainer, getSerializableObjectFactory, remove
-
-
-
-
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:EJBLocalHomeImplGet 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:
getEJBLocalHomein classEJBLocalHomeImpl
-
invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
Called by EJBLocalHome proxy.- Specified by:
invokein 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
-
-