Package org.jboss.ejb.client
Class SerializedEJBInvocationHandler
- java.lang.Object
-
- org.jboss.ejb.client.SerializedEJBInvocationHandler
-
- All Implemented Interfaces:
Externalizable
,Serializable
public final class SerializedEJBInvocationHandler extends Object implements Externalizable
A serialized Enterprise Bean invocation handler.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerializedEJBInvocationHandler()
Construct a new instance.SerializedEJBInvocationHandler(EJBLocator<?> locator)
Construct a new instance.SerializedEJBInvocationHandler(EJBLocator<?> locator, boolean async)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EJBLocator<?>
getLocator()
Get the invocation locator.void
readExternal(ObjectInput in)
Read this object from the input stream.protected Object
readResolve()
Resolve the corresponding invocation handler.void
setLocator(EJBLocator<?> locator)
Set the invocation locator.void
writeExternal(ObjectOutput out)
Write this object to the output stream.
-
-
-
Constructor Detail
-
SerializedEJBInvocationHandler
public SerializedEJBInvocationHandler()
Construct a new instance.
-
SerializedEJBInvocationHandler
public SerializedEJBInvocationHandler(EJBLocator<?> locator)
Construct a new instance.- Parameters:
locator
- the locator for this invocation handler
-
SerializedEJBInvocationHandler
public SerializedEJBInvocationHandler(EJBLocator<?> locator, boolean async)
Construct a new instance.- Parameters:
locator
- the locator for this invocation handler
-
-
Method Detail
-
getLocator
public EJBLocator<?> getLocator()
Get the invocation locator.- Returns:
- the invocation locator
-
setLocator
public void setLocator(EJBLocator<?> locator)
Set the invocation locator.- Parameters:
locator
- the invocation locator
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
Write this object to the output stream.- Specified by:
writeExternal
in interfaceExternalizable
- Parameters:
out
- the output stream- Throws:
IOException
- if a write error occurs
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Read this object from the input stream.- Specified by:
readExternal
in interfaceExternalizable
- Parameters:
in
- the input stream- Throws:
IOException
- if a read error occursClassNotFoundException
- if a class cannot be resolved
-
readResolve
protected Object readResolve()
Resolve the corresponding invocation handler.- Returns:
- the invocation handler
-
-