Package org.jboss.as.ejb3.iiop.handle
Class HandleDelegateImpl
- java.lang.Object
-
- org.jboss.as.ejb3.iiop.handle.HandleDelegateImpl
-
- All Implemented Interfaces:
javax.ejb.spi.HandleDelegate
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 Jakarta Enterprise Beans container. It is used by portable implementations of javax.ejb.Handle and javax.ejb.HomeHandle. It is not used by Jakarta Enterprise Beans components or by client components. It provides methods to serialize and deserialize Jakarta Enterprise Beans Object and Jakarta Enterprise Beans Home references to streams.
The HandleDelegate object is obtained by JNDI lookup at the reserved name "java:comp/HandleDelegate".
- Author:
- Dimitris.Andreadis@jboss.org, adrian@jboss.com
-
-
Constructor Summary
Constructors Constructor Description HandleDelegateImpl(ClassLoader classLoader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.ejb.spi.HandleDelegategetDelegate()javax.ejb.EJBHomereadEJBHome(ObjectInputStream oistream)javax.ejb.EJBObjectreadEJBObject(ObjectInputStream oistream)protected voidreconnect(Object object)voidwriteEJBHome(javax.ejb.EJBHome ejbHome, ObjectOutputStream oostream)voidwriteEJBObject(javax.ejb.EJBObject ejbObject, ObjectOutputStream oostream)
-
-
-
Constructor Detail
-
HandleDelegateImpl
public HandleDelegateImpl(ClassLoader classLoader)
-
-
Method Detail
-
writeEJBObject
public void writeEJBObject(javax.ejb.EJBObject ejbObject, ObjectOutputStream oostream) throws IOException- Specified by:
writeEJBObjectin interfacejavax.ejb.spi.HandleDelegate- Throws:
IOException
-
readEJBObject
public javax.ejb.EJBObject readEJBObject(ObjectInputStream oistream) throws IOException, ClassNotFoundException
- Specified by:
readEJBObjectin interfacejavax.ejb.spi.HandleDelegate- Throws:
IOExceptionClassNotFoundException
-
writeEJBHome
public void writeEJBHome(javax.ejb.EJBHome ejbHome, ObjectOutputStream oostream) throws IOException- Specified by:
writeEJBHomein interfacejavax.ejb.spi.HandleDelegate- Throws:
IOException
-
readEJBHome
public javax.ejb.EJBHome readEJBHome(ObjectInputStream oistream) throws IOException, ClassNotFoundException
- Specified by:
readEJBHomein interfacejavax.ejb.spi.HandleDelegate- Throws:
IOExceptionClassNotFoundException
-
reconnect
protected void reconnect(Object object) throws IOException
- Throws:
IOException
-
getDelegate
public static javax.ejb.spi.HandleDelegate getDelegate()
-
-