Package com.sun.ejb.containers
Class EJBHomeImpl
java.lang.Object
com.sun.ejb.containers.EJBHomeImpl
- All Implemented Interfaces:
jakarta.ejb.EJBHome,Remote
- Direct Known Subclasses:
EJBHomeInvocationHandler
This class implements the EJBHome interface.
This class is also the base class for all generated concrete EJBHome
implementations.
At deployment time, one instance of the EJBHome is created
for each EJB class in a JAR that has a remote home.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThis constructor is called from an EJBHome implementation's constructor. -
Method Summary
Modifier and TypeMethodDescriptionCreate a new EJBObject and new EJB if necessary.protected final ContainerCalled from EJBHome implementation.protected jakarta.ejb.EJBHomeGet the EJBHome corresponding to an EJBHomeImpl.final jakarta.ejb.EJBMetaDataThis is the implementation of the jakarta.ejb.EJBHome method.final jakarta.ejb.HomeHandleThis is the implementation of the jakarta.ejb.EJBHome getHomeHandle method.final voidremove(jakarta.ejb.Handle handle) This is the implementation of the jakarta.ejb.EJBHome remove method.final voidThis is the implementation of the jakarta.ejb.EJBHome remove method.
-
Field Details
-
_logger
-
-
Constructor Details
-
EJBHomeImpl
This constructor is called from an EJBHome implementation's constructor.- Throws:
RemoteException
-
-
Method Details
-
getContainer
Called from EJBHome implementation. -
getEJBHome
protected jakarta.ejb.EJBHome getEJBHome()Get the EJBHome corresponding to an EJBHomeImpl. These objects are one and the same when the home is generated, but distinct in the case of dynamic proxies. Therefore, code can't assume it can cast an EJBHomeImpl to the EJBHome that the client uses, and vice-versa. This is overridden in the InvocationHandler. -
createEJBObjectImpl
Create a new EJBObject and new EJB if necessary. This is called from the generated "HelloEJBHomeImpl" create method. Return the EJBObject for the bean.- Throws:
RemoteExceptionjakarta.ejb.CreateException
-
createRemoteBusinessObjectImpl
public EJBObjectImpl createRemoteBusinessObjectImpl() throws RemoteException, jakarta.ejb.CreateException- Throws:
RemoteExceptionjakarta.ejb.CreateException
-
remove
public final void remove(jakarta.ejb.Handle handle) throws RemoteException, jakarta.ejb.RemoveException This is the implementation of the jakarta.ejb.EJBHome remove method.- Specified by:
removein interfacejakarta.ejb.EJBHome- Throws:
jakarta.ejb.RemoveException- on error during removalRemoteException
-
remove
This is the implementation of the jakarta.ejb.EJBHome remove method.- Specified by:
removein interfacejakarta.ejb.EJBHome- Throws:
jakarta.ejb.RemoveException- on error during removalRemoteException
-
getEJBMetaData
This is the implementation of the jakarta.ejb.EJBHome method.- Specified by:
getEJBMetaDatain interfacejakarta.ejb.EJBHome- Throws:
RemoteException
-
getHomeHandle
This is the implementation of the jakarta.ejb.EJBHome getHomeHandle method.- Specified by:
getHomeHandlein interfacejakarta.ejb.EJBHome- Throws:
RemoteException
-