Package com.sun.ejb.containers
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final EJBLocalObjectImplcreateEJBLocalBusinessObjectImpl(String intfName) Create a new EJBLocalBusinessObjectImpl and new EJB if necessary.protected EJBLocalObjectImplCreate a new EJBLocalObjectImpl and new EJB if necessary.protected final BaseContainerCalled from concrete EJBLocalHome implementation.protected jakarta.ejb.EJBLocalHomeGet the EJBLocalHome corresponding to an EJBLocalHomeImpl.com.sun.enterprise.container.common.spi.util.SerializableObjectFactoryfinal voidThis is the implementation of the jakarta.ejb.EJBLocalHome remove method.
-
Constructor Details
-
EJBLocalHomeImpl
public EJBLocalHomeImpl()
-
-
Method Details
-
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
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:
removein interfacejakarta.ejb.EJBLocalHome- Throws:
jakarta.ejb.RemoveExceptionjakarta.ejb.EJBException
-
getSerializableObjectFactory
public com.sun.enterprise.container.common.spi.util.SerializableObjectFactory getSerializableObjectFactory()- Specified by:
getSerializableObjectFactoryin interfacecom.sun.enterprise.container.common.spi.util.IndirectlySerializable
-