Class EJBLocalObjectInvocationHandler

All Implemented Interfaces:
com.sun.enterprise.container.common.spi.util.IndirectlySerializable, jakarta.ejb.EJBLocalObject, InvocationHandler

public final class EJBLocalObjectInvocationHandler extends EJBLocalObjectImpl implements InvocationHandler
Handler for EJBLocalObject invocations through EJBLocalObject proxy.
Author:
Kenneth Saks
  • Constructor Details

    • EJBLocalObjectInvocationHandler

      public EJBLocalObjectInvocationHandler(MethodMap invocationInfoMap, Class<?> localIntf) throws Exception
      Constructor used for Local Home view
      Throws:
      Exception
    • EJBLocalObjectInvocationHandler

      public EJBLocalObjectInvocationHandler(MethodMap invocationInfoMap, boolean optionalLocalBusinessView) throws Exception
      Constructor used for Local Business view.
      Throws:
      Exception
  • Method Details

    • setProxy

      public void setProxy(Object proxy)
    • getClientObject

      public Object getClientObject()
      Description copied from class: EJBLocalObjectImpl
      Get the client object corresponding to an EJBLocalObjectImpl. Users of this class cannot assume they can cast an EJBLocalObjectImpl to the object that the client uses, and vice-versa. This is overridden in the InvocationHandler. Only applicable for local home view.
      Overrides:
      getClientObject in class EJBLocalObjectImpl
    • invoke

      public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
      This entry point is only used for Local Home view.
      Specified by:
      invoke in interface InvocationHandler
      Throws:
      Throwable