org.objectweb.jonas_ejb.container.JHandleDelegate Class Reference

List of all members.

Public Member Functions

void writeEJBObject (EJBObject ejb, ObjectOutputStream out) throws IOException
EJBObject readEJBObject (ObjectInputStream in) throws IOException, ClassNotFoundException
void writeEJBHome (EJBHome home, ObjectOutputStream out) throws IOException
EJBHome readEJBHome (ObjectInputStream in) throws IOException, ClassNotFoundException

Detailed Description

Implementation for HandleDelegate SPI.
Author:
durieuxp

Definition at line 44 of file JHandleDelegate.java.


Member Function Documentation

EJBHome org.objectweb.jonas_ejb.container.JHandleDelegate.readEJBHome ObjectInputStream  in  )  throws IOException, ClassNotFoundException
 

Deserialize the EJBHome reference corresponding to a HomeHandle. readEJBHome is called from the readObject method of portable HomeHandle implementation classes. The istream object is the same object that was passed in to the HomeHandle class's readObject. When readEJBHome is called, istream must point to the location in the stream at which the EJBHome reference can be read. The container must ensure that the EJBHome reference is capable of performing invocations immediately after deserialization.

Parameters:
in The input stream.
Returns:
The deserialized EJBHome reference.
Exceptions:
IOException The EJBHome could not be deserialized because of a system-level failure.
ClassNotFoundException The EJBHome could not be deserialized because some class could not be found.

Definition at line 119 of file JHandleDelegate.java.

EJBObject org.objectweb.jonas_ejb.container.JHandleDelegate.readEJBObject ObjectInputStream  in  )  throws IOException, ClassNotFoundException
 

Deserialize the EJBObject reference corresponding to a Handle. readEJBObject is called from the readObject method of portable Handle implementation classes. The istream object is the same object that was passed in to the Handle class's readObject. When readEJBObject is called, istream must point to the location in the stream at which the EJBObject reference can be read. The container must ensure that the EJBObject reference is capable of performing invocations immediately after deserialization.

Parameters:
in The input stream.
Returns:
The deserialized EJBObject reference.
Exceptions:
IOException The EJBObject could not be deserialized because of a system-level failure.
ClassNotFoundException The EJBObject could not be deserialized because some class could not be found.

Definition at line 81 of file JHandleDelegate.java.

void org.objectweb.jonas_ejb.container.JHandleDelegate.writeEJBHome EJBHome  home,
ObjectOutputStream  out
throws IOException
 

Serialize the EJBHome reference corresponding to a HomeHandle. This method is called from the writeObject method of portable HomeHandle implementation classes. The ostream object is the same object that was passed in to the Handle class's writeObject.

Parameters:
home The EJBHome reference to be serialized.
out The output stream.
Exceptions:
IOException The EJBObject could not be deserialized because of a system-level failure.

Definition at line 98 of file JHandleDelegate.java.

void org.objectweb.jonas_ejb.container.JHandleDelegate.writeEJBObject EJBObject  ejb,
ObjectOutputStream  out
throws IOException
 

Serialize the EJBObject reference corresponding to a Handle. This method is called from the writeObject method of portable Handle implementation classes. The ostream object is the same object that was passed in to the Handle class's writeObject.

Parameters:
ejb The EJBObject reference to be serialized.
out The output stream.
Exceptions:
IOException The EJBObject could not be serialized because of a system-level failure.

Definition at line 60 of file JHandleDelegate.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:10:23 2005 for JOnAS by  doxygen 1.3.9.1