Package com.sun.ejb.containers
Class EJBLocalHomeImpl
- java.lang.Object
-
- com.sun.ejb.containers.EJBLocalHomeImpl
-
- All Implemented Interfaces:
IndirectlySerializable
,jakarta.ejb.EJBLocalHome
- Direct Known Subclasses:
EJBLocalHomeInvocationHandler
public abstract class EJBLocalHomeImpl extends Object implements jakarta.ejb.EJBLocalHome, 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 Modifier and Type Class Description static class
EJBLocalHomeImpl.SerializableLocalHome
-
Field Summary
Fields Modifier and Type Field Description protected BaseContainer
container
-
Constructor Summary
Constructors Constructor Description EJBLocalHomeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EJBLocalObjectImpl
createEJBLocalBusinessObjectImpl(String intfName)
Create a new EJBLocalBusinessObjectImpl and new EJB if necessary.protected EJBLocalObjectImpl
createEJBLocalObjectImpl()
Create a new EJBLocalObjectImpl and new EJB if necessary.protected BaseContainer
getContainer()
Called from concrete EJBLocalHome implementation.protected jakarta.ejb.EJBLocalHome
getEJBLocalHome()
Get the EJBLocalHome corresponding to an EJBLocalHomeImpl.SerializableObjectFactory
getSerializableObjectFactory()
void
remove(Object primaryKey)
This is the implementation of the jakarta.ejb.EJBLocalHome remove method.
-
-
-
Field Detail
-
container
protected BaseContainer container
-
-
Method Detail
-
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.
-
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. Return 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
-- 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 interfacejakarta.ejb.EJBLocalHome
- Throws:
jakarta.ejb.RemoveException
jakarta.ejb.EJBException
-
getSerializableObjectFactory
public SerializableObjectFactory getSerializableObjectFactory()
- Specified by:
getSerializableObjectFactory
in interfaceIndirectlySerializable
-
-