Package org.jboss.ejb.client
Class SerializedEJBInvocationHandler
java.lang.Object
org.jboss.ejb.client.SerializedEJBInvocationHandler
- All Implemented Interfaces:
Externalizable,Serializable
A serialized Enterprise Bean invocation handler.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance.SerializedEJBInvocationHandler(EJBLocator<?> locator) Construct a new instance.SerializedEJBInvocationHandler(EJBLocator<?> locator, boolean async) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionEJBLocator<?>Get the invocation locator.voidRead this object from the input stream.protected ObjectResolve the corresponding invocation handler.voidsetLocator(EJBLocator<?> locator) Set the invocation locator.voidWrite this object to the output stream.
-
Constructor Details
-
SerializedEJBInvocationHandler
public SerializedEJBInvocationHandler()Construct a new instance. -
SerializedEJBInvocationHandler
Construct a new instance.- Parameters:
locator- the locator for this invocation handler
-
SerializedEJBInvocationHandler
Construct a new instance.- Parameters:
locator- the locator for this invocation handler
-
-
Method Details
-
getLocator
Get the invocation locator.- Returns:
- the invocation locator
-
setLocator
Set the invocation locator.- Parameters:
locator- the invocation locator
-
writeExternal
Write this object to the output stream.- Specified by:
writeExternalin interfaceExternalizable- Parameters:
out- the output stream- Throws:
IOException- if a write error occurs
-
readExternal
Read this object from the input stream.- Specified by:
readExternalin interfaceExternalizable- Parameters:
in- the input stream- Throws:
IOException- if a read error occursClassNotFoundException- if a class cannot be resolved
-
readResolve
Resolve the corresponding invocation handler.- Returns:
- the invocation handler
-