org.openejb.client
Class EJBObjectHandle
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ejbObjectProxy
protected transient EJBObjectProxy ejbObjectProxy
handler
protected transient EJBObjectHandler handler
EJBObjectHandle
public EJBObjectHandle()
- Public no-arg constructor required by Externalizable API
EJBObjectHandle
public EJBObjectHandle(EJBObjectProxy proxy)
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.