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
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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEJBLocalHomeInvocationHandler(com.sun.enterprise.deployment.EjbDescriptor ejbDescriptor, Class localHomeIntf) -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.ejb.EJBLocalHomeGet the EJBLocalHome corresponding to an EJBLocalHomeImpl.protected booleanhandleSpecialEJBLocalHomeMethod(Method method, Class methodClass) Called by EJBLocalHome proxy.protected ObjectinvokeSpecialEJBLocalHomeMethod(Method method, Class methodClass, Object[] args) protected ObjectinvokeTargetBeanMethod(BaseContainer container, Method beanClassMethod, EjbInvocation inv, Object target, Object[] params) Allow subclasses to execute a protected method in BaseContainerprotected 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
-
Constructor Details
-
Method Details
-
setMethodMap
-
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- Returns:
- this
-
invoke
Called by EJBLocalHome proxy.- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
handleSpecialEJBLocalHomeMethod
-
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 Allow subclasses to execute a protected method in BaseContainer- Throws:
Throwable
-