public class HandleDelegateImpl extends Object implements javax.ejb.spi.HandleDelegate
Implementation of the javax.ejb.spi.HandleDelegate interface
The HandleDelegate interface is implemented by the EJB container. It is used by portable implementations of javax.ejb.Handle and javax.ejb.HomeHandle. It is not used by EJB components or by client components. It provides methods to serialize and deserialize EJBObject and EJBHome references to streams.
The HandleDelegate object is obtained by JNDI lookup at the reserved name "java:comp/HandleDelegate".
Constructor and Description |
---|
HandleDelegateImpl(ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
static javax.ejb.spi.HandleDelegate |
getDelegate() |
javax.ejb.EJBHome |
readEJBHome(ObjectInputStream oistream) |
javax.ejb.EJBObject |
readEJBObject(ObjectInputStream oistream) |
protected void |
reconnect(Object object) |
void |
writeEJBHome(javax.ejb.EJBHome ejbHome,
ObjectOutputStream oostream) |
void |
writeEJBObject(javax.ejb.EJBObject ejbObject,
ObjectOutputStream oostream) |
public HandleDelegateImpl(ClassLoader classLoader)
public void writeEJBObject(javax.ejb.EJBObject ejbObject, ObjectOutputStream oostream) throws IOException
writeEJBObject
in interface javax.ejb.spi.HandleDelegate
IOException
public javax.ejb.EJBObject readEJBObject(ObjectInputStream oistream) throws IOException, ClassNotFoundException
readEJBObject
in interface javax.ejb.spi.HandleDelegate
IOException
ClassNotFoundException
public void writeEJBHome(javax.ejb.EJBHome ejbHome, ObjectOutputStream oostream) throws IOException
writeEJBHome
in interface javax.ejb.spi.HandleDelegate
IOException
public javax.ejb.EJBHome readEJBHome(ObjectInputStream oistream) throws IOException, ClassNotFoundException
readEJBHome
in interface javax.ejb.spi.HandleDelegate
IOException
ClassNotFoundException
protected void reconnect(Object object) throws IOException
IOException
public static javax.ejb.spi.HandleDelegate getDelegate()
Copyright © 2018 JBoss by Red Hat. All rights reserved.