com.sun.ejb.containers
Class EJBLocalObjectImpl

java.lang.Object
  extended by com.sun.ejb.containers.EJBLocalRemoteObject
      extended by com.sun.ejb.containers.EJBLocalObjectImpl
All Implemented Interfaces:
IndirectlySerializable, EJBLocalObject
Direct Known Subclasses:
EJBLocalObjectInvocationHandler

public abstract class EJBLocalObjectImpl
extends EJBLocalRemoteObject
implements EJBLocalObject, 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
container, debug, primaryKey
 
Constructor Summary
EJBLocalObjectImpl()
           
 
Method Summary
protected  java.lang.Object getClientObject()
          Get the client object corresponding to an EJBLocalObjectImpl.
 EJBLocalHome getEJBLocalHome()
           
 java.lang.Object getPrimaryKey()
           
 SerializableObjectFactory getSerializableObjectFactory()
          Called from EJBUtils.EJBObjectOutputStream.replaceObject
 boolean isIdentical(EJBLocalObject other)
           
 void remove()
           
 
Methods inherited from class com.sun.ejb.containers.EJBLocalRemoteObject
getContainer, getSfsbClientVersion, setSfsbClientVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBLocalObjectImpl

public EJBLocalObjectImpl()
Method Detail

getClientObject

protected java.lang.Object 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.


getEJBLocalHome

public EJBLocalHome getEJBLocalHome()
                             throws EJBException
Specified by:
getEJBLocalHome in interface EJBLocalObject
Throws:
EJBException

remove

public void remove()
            throws RemoveException,
                   EJBException
Specified by:
remove in interface EJBLocalObject
Throws:
RemoveException
EJBException

getPrimaryKey

public java.lang.Object getPrimaryKey()
                               throws EJBException
Specified by:
getPrimaryKey in interface EJBLocalObject
Throws:
EJBException

isIdentical

public boolean isIdentical(EJBLocalObject other)
                    throws EJBException
Specified by:
isIdentical in interface EJBLocalObject
Throws:
EJBException

getSerializableObjectFactory

public SerializableObjectFactory getSerializableObjectFactory()
Called from EJBUtils.EJBObjectOutputStream.replaceObject

Specified by:
getSerializableObjectFactory in interface IndirectlySerializable


Copyright © 2012 GlassFish Community. All Rights Reserved.