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:
  • Constructor Details

    • 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 Details

    • 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