org.openejb.client
Class EJBObjectHandle

java.lang.Object
  extended by org.openejb.client.EJBObjectHandle
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, javax.ejb.Handle

public class EJBObjectHandle
extends java.lang.Object
implements java.io.Externalizable, javax.ejb.Handle

------------------------------------- EJB 1.1 9.3.4 Handle class The deployment tools are responsible for implementing the handle class for the entity bean. The handle class must be serializable by the Java programming language Serialization protocol. As the handle class is not entity bean specific, the container may, but is not required to, use a single class for all deployed entity beans. ------------------------------------- The handle class for all deployed beans, not just entity beans.

Since:
11/25/2001
Author:
David Blevins
See Also:
Serialized Form

Field Summary
protected  EJBObjectProxy ejbObjectProxy
           
protected  EJBObjectHandler handler
           
 
Constructor Summary
EJBObjectHandle()
          Public no-arg constructor required by Externalizable API
EJBObjectHandle(EJBObjectProxy proxy)
           
 
Method Summary
 javax.ejb.EJBObject getEJBObject()
          Obtain the EJB object reference represented by this handle.
 void readExternal(java.io.ObjectInput in)
          Reads the instanceHandle from the stream
protected  void setEJBObjectProxy(EJBObjectProxy ejbObjectProxy)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ejbObjectProxy

protected transient EJBObjectProxy ejbObjectProxy

handler

protected transient EJBObjectHandler handler
Constructor Detail

EJBObjectHandle

public EJBObjectHandle()
Public no-arg constructor required by Externalizable API


EJBObjectHandle

public EJBObjectHandle(EJBObjectProxy proxy)
Method Detail

setEJBObjectProxy

protected void setEJBObjectProxy(EJBObjectProxy ejbObjectProxy)

getEJBObject

public javax.ejb.EJBObject getEJBObject()
                                 throws java.rmi.RemoteException
Obtain the EJB object reference represented by this handle.

Specified by:
getEJBObject in interface javax.ejb.Handle
Throws:
java.rmi.RemoteException - The EJB object could not be obtained because of a system-level failure.

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Reads the instanceHandle from the stream

Specified by:
readExternal in interface java.io.Externalizable
Parameters:
in -
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.