JBoss EJB client 1.0.5.Final

org.jboss.ejb.client
Class SerializedEJBInvocationHandler

java.lang.Object
  extended by org.jboss.ejb.client.SerializedEJBInvocationHandler
All Implemented Interfaces:
Externalizable, Serializable

public final class SerializedEJBInvocationHandler
extends Object
implements Externalizable

A serialized EJB invocation handler.

Author:
David M. Lloyd
See Also:
Serialized Form

Constructor Summary
SerializedEJBInvocationHandler()
          Construct a new instance.
SerializedEJBInvocationHandler(EJBLocator<?> locator)
          Construct a new instance.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
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 interface Externalizable
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 interface Externalizable
Parameters:
in - the input stream
Throws:
IOException - if a read error occurs
ClassNotFoundException - if a class cannot be resolved

readResolve

protected Object readResolve()
Resolve the corresponding invocation handler.

Returns:
the invocation handler

JBoss EJB client 1.0.5.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.