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
  • Constructor Details

    • EJBHomeInvocationHandler

      protected EJBHomeInvocationHandler(com.sun.enterprise.deployment.EjbDescriptor ejbDescriptor, Class homeIntfClass) throws Exception
      Throws:
      Exception
  • Method Details

    • setProxy

      public void setProxy(jakarta.ejb.EJBHome proxy)
    • setMethodMap

      public void setMethodMap(MethodMap map)
    • getEJBHome

      protected jakarta.ejb.EJBHome getEJBHome()
      Description copied from class: EJBHomeImpl
      Get 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:
      getEJBHome in class EJBHomeImpl
    • invoke

      public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
      Called by EJBHome proxy.
      Specified by:
      invoke in interface InvocationHandler
      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