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

    • EJBLocalHomeInvocationHandler

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

    • setMethodMap

      public void setMethodMap(MethodMap map)
    • setProxy

      public void setProxy(jakarta.ejb.EJBLocalHome proxy)
    • getEJBLocalHome

      protected jakarta.ejb.EJBLocalHome getEJBLocalHome()
      Description copied from class: EJBLocalHomeImpl
      Get 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:
      getEJBLocalHome in class EJBLocalHomeImpl
      Returns:
      this
    • invoke

      public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
      Called by EJBLocalHome proxy.
      Specified by:
      invoke in interface InvocationHandler
      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
      Allow subclasses to execute a protected method in BaseContainer
      Throws:
      Throwable