Class EJBLocalHomeImpl

java.lang.Object
com.sun.ejb.containers.EJBLocalHomeImpl
All Implemented Interfaces:
com.sun.enterprise.container.common.spi.util.IndirectlySerializable, jakarta.ejb.EJBLocalHome
Direct Known Subclasses:
EJBLocalHomeInvocationHandler

public abstract class EJBLocalHomeImpl extends Object implements jakarta.ejb.EJBLocalHome, com.sun.enterprise.container.common.spi.util.IndirectlySerializable
Implementation of the EJBLocalHome interface. This class is also the base class for all generated concrete EJBLocalHome implementations. At deployment time, one instance of the EJBLocalHome is created for each EJB class in a JAR that has a local home.
Author:
Mahesh Kannan
  • Constructor Details

    • EJBLocalHomeImpl

      public EJBLocalHomeImpl()
  • Method Details

    • getContainer

      protected final BaseContainer getContainer()
      Called from concrete EJBLocalHome implementation.
    • getEJBLocalHome

      protected jakarta.ejb.EJBLocalHome getEJBLocalHome()
      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.
      Returns:
      this
    • createEJBLocalObjectImpl

      protected EJBLocalObjectImpl createEJBLocalObjectImpl() throws jakarta.ejb.CreateException
      Create a new EJBLocalObjectImpl and new EJB if necessary. This is called from the concrete "HelloEJBHomeImpl" create method.
      Returns:
      the EJBObjectImpl for the bean.
      Throws:
      jakarta.ejb.CreateException
    • createEJBLocalBusinessObjectImpl

      protected final EJBLocalObjectImpl createEJBLocalBusinessObjectImpl(String intfName) throws jakarta.ejb.CreateException
      Create a new EJBLocalBusinessObjectImpl and new EJB if necessary.
      Parameters:
      intfName -
      Returns:
      EJBLocalObjectImpl
      Throws:
      jakarta.ejb.CreateException
    • remove

      public final void remove(Object primaryKey) throws jakarta.ejb.RemoveException, jakarta.ejb.EJBException
      This is the implementation of the jakarta.ejb.EJBLocalHome remove method.
      Specified by:
      remove in interface jakarta.ejb.EJBLocalHome
      Throws:
      jakarta.ejb.RemoveException
      jakarta.ejb.EJBException
    • getSerializableObjectFactory

      public com.sun.enterprise.container.common.spi.util.SerializableObjectFactory getSerializableObjectFactory()
      Specified by:
      getSerializableObjectFactory in interface com.sun.enterprise.container.common.spi.util.IndirectlySerializable