Class EJBLocalObjectImpl

java.lang.Object
com.sun.ejb.containers.EJBLocalRemoteObject
com.sun.ejb.containers.EJBLocalObjectImpl
All Implemented Interfaces:
com.sun.enterprise.container.common.spi.util.IndirectlySerializable, jakarta.ejb.EJBLocalObject
Direct Known Subclasses:
EJBLocalObjectInvocationHandler

public abstract class EJBLocalObjectImpl extends EJBLocalRemoteObject implements jakarta.ejb.EJBLocalObject, com.sun.enterprise.container.common.spi.util.IndirectlySerializable
Implementation of the EJBLocalObject interface. This is NOT serializable to prevent local references from leaving the JVM. It is extended by the generated concrete type-specific EJBLocalObject implementation (e.g. Hello_EJBLocalObject).
Author:
Mahesh Kannan
  • Constructor Details

    • EJBLocalObjectImpl

      public EJBLocalObjectImpl()
  • Method Details

    • getClientObject

      public Object getClientObject()
      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.
    • toEJBLocalObjectImpl

      public static EJBLocalObjectImpl toEJBLocalObjectImpl(jakarta.ejb.EJBLocalObject localObj)
      Since EJBLocalObject might be a dynamic proxy, the container can't assume it can cast from EJBLocalObject to EJBLocalObjectImpl. This convenience method is used to hide the logic behind the translation from an client-side EJBLocalObject to the corresponding EJBLocalObjectImpl. In the case of a proxy, the invocation handler is the EJBLocalObjectImpl. Otherwise, the argument is returned as is. NOTE : To translate in the other direction, use EJBLocalObjectImpl.getEJBLocalObject()
    • getEJBLocalHome

      public jakarta.ejb.EJBLocalHome getEJBLocalHome() throws jakarta.ejb.EJBException
      Specified by:
      getEJBLocalHome in interface jakarta.ejb.EJBLocalObject
      Throws:
      jakarta.ejb.EJBException
    • remove

      public void remove() throws jakarta.ejb.RemoveException, jakarta.ejb.EJBException
      Specified by:
      remove in interface jakarta.ejb.EJBLocalObject
      Throws:
      jakarta.ejb.RemoveException
      jakarta.ejb.EJBException
    • getPrimaryKey

      public Object getPrimaryKey() throws jakarta.ejb.EJBException
      Specified by:
      getPrimaryKey in interface jakarta.ejb.EJBLocalObject
      Throws:
      jakarta.ejb.EJBException
    • isIdentical

      public boolean isIdentical(jakarta.ejb.EJBLocalObject other) throws jakarta.ejb.EJBException
      Specified by:
      isIdentical in interface jakarta.ejb.EJBLocalObject
      Throws:
      jakarta.ejb.EJBException
    • getSerializableObjectFactory

      public com.sun.enterprise.container.common.spi.util.SerializableObjectFactory getSerializableObjectFactory()
      Called from EJBUtils.EJBObjectOutputStream.replaceObject
      Specified by:
      getSerializableObjectFactory in interface com.sun.enterprise.container.common.spi.util.IndirectlySerializable