Package com.sun.ejb.containers
Class EJBHomeInvocationHandler
- java.lang.Object
-
- com.sun.ejb.containers.EJBHomeImpl
-
- com.sun.ejb.containers.EJBHomeInvocationHandler
-
- All Implemented Interfaces:
jakarta.ejb.EJBHome,InvocationHandler,Remote
public class EJBHomeInvocationHandler extends EJBHomeImpl implements InvocationHandler
Handler for EJBHome invocations through EJBHome proxy.- Author:
- Kenneth Saks
-
-
Field Summary
-
Fields inherited from class com.sun.ejb.containers.EJBHomeImpl
_logger
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEJBHomeInvocationHandler(com.sun.enterprise.deployment.EjbDescriptor ejbDescriptor, Class homeIntfClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected jakarta.ejb.EJBHomegetEJBHome()Get the EJBHome corresponding to an EJBHomeImpl.Objectinvoke(Object proxy, Method method, Object[] args)Called by EJBHome proxy.protected booleaninvokeSpecialEJBHomeMethod(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.EJBHome proxy)-
Methods inherited from class com.sun.ejb.containers.EJBHomeImpl
createEJBObjectImpl, createRemoteBusinessObjectImpl, getContainer, getEJBMetaData, getHomeHandle, remove, remove
-
-
-
-
Method Detail
-
setProxy
public void setProxy(jakarta.ejb.EJBHome proxy)
-
setMethodMap
public void setMethodMap(MethodMap map)
-
getEJBHome
protected jakarta.ejb.EJBHome getEJBHome()
Description copied from class:EJBHomeImplGet the EJBHome corresponding to an EJBHomeImpl. These objects are one and the same when the home is generated, but distinct in the case of dynamic proxies. Therefore, code can't assume it can cast an EJBHomeImpl to the EJBHome that the client uses, and vice-versa. This is overridden in the InvocationHandler.- Overrides:
getEJBHomein classEJBHomeImpl
-
invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
Called by EJBHome proxy.- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
invokeSpecialEJBHomeMethod
protected boolean invokeSpecialEJBHomeMethod(Method method, Class methodClass, Object[] args) throws Exception
- Throws:
Exception
-
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
-
-