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

HomeHandleImpl

public final class HomeHandleImpl extends Object implements Serializable, HomeHandle
A portable implementation of HomeHandle 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.

Fields Summary
private EJBHome
ejbHome
Constructors Summary
public HomeHandleImpl(EJBHome ejbHome)

	this.ejbHome = ejbHome;
    
Methods Summary
public EJBHomegetEJBHome()

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

	HandleDelegate handleDelegate;
	try {	   
	    handleDelegate = HandleDelegateUtil.getHandleDelegate();
	} catch ( NamingException ne ) {                        
            throw new EJBException("Unable to lookup HandleDelegate", ne);
        }
        ejbHome = handleDelegate.readEJBHome(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.writeEJBHome(ejbHome, ostream);