Package com.sun.ejb.containers
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
-
Field Summary
Fields inherited from class com.sun.ejb.containers.EJBLocalRemoteObject
_logger, container, debug, primaryKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the client object corresponding to an EJBLocalObjectImpl.jakarta.ejb.EJBLocalHomecom.sun.enterprise.container.common.spi.util.SerializableObjectFactoryCalled from EJBUtils.EJBObjectOutputStream.replaceObjectbooleanisIdentical(jakarta.ejb.EJBLocalObject other) voidremove()static EJBLocalObjectImpltoEJBLocalObjectImpl(jakarta.ejb.EJBLocalObject localObj) Since EJBLocalObject might be a dynamic proxy, the container can't assume it can cast from EJBLocalObject to EJBLocalObjectImpl.Methods inherited from class com.sun.ejb.containers.EJBLocalRemoteObject
getContainer, getSfsbClientVersion, setSfsbClientVersion
-
Constructor Details
-
EJBLocalObjectImpl
public EJBLocalObjectImpl()
-
-
Method Details
-
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
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:
getEJBLocalHomein interfacejakarta.ejb.EJBLocalObject- Throws:
jakarta.ejb.EJBException
-
remove
public void remove() throws jakarta.ejb.RemoveException, jakarta.ejb.EJBException- Specified by:
removein interfacejakarta.ejb.EJBLocalObject- Throws:
jakarta.ejb.RemoveExceptionjakarta.ejb.EJBException
-
getPrimaryKey
- Specified by:
getPrimaryKeyin interfacejakarta.ejb.EJBLocalObject- Throws:
jakarta.ejb.EJBException
-
isIdentical
public boolean isIdentical(jakarta.ejb.EJBLocalObject other) throws jakarta.ejb.EJBException - Specified by:
isIdenticalin interfacejakarta.ejb.EJBLocalObject- Throws:
jakarta.ejb.EJBException
-
getSerializableObjectFactory
public com.sun.enterprise.container.common.spi.util.SerializableObjectFactory getSerializableObjectFactory()Called from EJBUtils.EJBObjectOutputStream.replaceObject- Specified by:
getSerializableObjectFactoryin interfacecom.sun.enterprise.container.common.spi.util.IndirectlySerializable
-