FileDocCategorySizeDatePackage
HandleImpl.javaAPI DocGlassfish v2 API3604Fri May 04 22:33:12 BST 2007com.sun.ejb.portable

HandleImpl

public final class HandleImpl extends Object implements Serializable, Handle
A portable implementation of Handle using the HandleDelegate SPI. This class can potentially be instantiated in another vendor's container so it must not refer to any non-portable RI-specific classes.
author
Kenneth Saks

Fields Summary
private EJBObject
ejbObject
Constructors Summary
public HandleImpl(EJBObject ejbObject)

	this.ejbObject = ejbObject;
    
Methods Summary
public EJBObjectgetEJBObject()

	return ejbObject;
    
private voidreadObject(java.io.ObjectInputStream istream)

	HandleDelegate handleDelegate;
	try {	   
	    handleDelegate = HandleDelegateUtil.getHandleDelegate();           
	} catch ( NamingException ne ) {
            throw new EJBException("Unable to lookup HandleDelegate", ne);
        }
        ejbObject = handleDelegate.readEJBObject(istream);
    
private voidwriteObject(java.io.ObjectOutputStream ostream)

	HandleDelegate handleDelegate;
	try {	    
	    handleDelegate = HandleDelegateUtil.getHandleDelegate();           
        } catch ( NamingException ne ) {                            
            throw new EJBException("Unable to lookup HandleDelegate", ne);
        }      
        handleDelegate.writeEJBObject(ejbObject, ostream);