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
Handler for EJBHome invocations through EJBHome proxy.
- Author:
- Kenneth Saks
-
Field Summary
Fields inherited from class com.sun.ejb.containers.EJBHomeImpl
_logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEJBHomeInvocationHandler(com.sun.enterprise.deployment.EjbDescriptor ejbDescriptor, Class homeIntfClass) -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.ejb.EJBHomeGet the EJBHome corresponding to an EJBHomeImpl.Called by EJBHome proxy.protected booleaninvokeSpecialEJBHomeMethod(Method method, Class<?> methodClass, Object[] args) Default impl to be overridden in subclass if necessaryprotected 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) Default impl to be overridden in subclass if necessary.voidsetMethodMap(MethodMap map) voidsetProxy(jakarta.ejb.EJBHome proxy) Methods inherited from class com.sun.ejb.containers.EJBHomeImpl
createEJBObjectImpl, createRemoteBusinessObjectImpl, getContainer, getEJBMetaData, getHomeHandle, remove, remove
-
Constructor Details
-
Method Details
-
setProxy
public void setProxy(jakarta.ejb.EJBHome proxy) -
setMethodMap
-
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
Called by EJBHome proxy.- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
invokeSpecialEJBHomeMethod
protected boolean invokeSpecialEJBHomeMethod(Method method, Class<?> methodClass, Object[] args) throws Exception Default impl to be overridden in subclass if necessary- Returns:
- false
- Throws:
Exception
-
postCreate
protected void postCreate(Container container, EjbInvocation inv, InvocationInfo invInfo, Object primaryKey, Object[] args) throws Throwable Default impl to be overridden in subclass if necessary. Doesn't do anything.- 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
-