com.ibm.task.api

Class ReplyHandlerWrapper

  • java.lang.Object
    • com.ibm.task.api.ReplyHandlerWrapper
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public final class ReplyHandlerWrapper
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    Wraps the reply handler passed to the Human Task Manager.

    When the Human Task Manager is accessed through its EJB interface, then:

    • Invocation parameters are automatically deserialized by the application server.
    • Invocation parameters are deserialized before the Human Task Manager sets the appropriate class loader.
    The ReplyHandlerWrapper defers deserialization of the reply handler implementation until the wrapped ReplyHandler object is accessed. This allows the Human Task Manager to set the appropriate class loader.
    Since:
    6.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object clone()
      Creates and returns a copy of this object.
      static ReplyHandlerWrapper fromByteArray(byte[] buffer)
      Factory method that creates a ReplyHandlerWrapper from a byte array.
      ReplyHandler getObject()
      Returns the wrapped object.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReplyHandlerWrapper

        public ReplyHandlerWrapper()
        Default constructor needed by deserialization. Sets the wrapped object to null.
      • ReplyHandlerWrapper

        public ReplyHandlerWrapper(ReplyHandler object)
        Constructor that stores the passed object.
        Parameters:
        object - The object to wrap. When the ReplyHandlerWrapper object is used as an EJB parameter or as an EJB return value, then object must implement java.io.Serializable.
    • Method Detail

      • fromByteArray

        public static ReplyHandlerWrapper fromByteArray(byte[] buffer)
        Factory method that creates a ReplyHandlerWrapper from a byte array.
        Parameters:
        buffer - The serialized object to wrap.
        Returns:
        A ReplyHandlerWrapper object.
      • getObject

        public ReplyHandler getObject()
                               throws TaskException
        Returns the wrapped object.

        If the ReplyHandlerWrapper object has been serialized, then deserialized and this is the first time the wrapped object is accessed, the wrapped object is deserialized before it is returned. If the ReplyHandlerWrapper has never been serialized, or the wrapped object has been accessed before, then the wrapped object is returned without deserialization.

        Returns:
        The wrapped object.
        Throws:
        TaskException - If an error occurrs during deserialization of the object.
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Creates and returns a copy of this object.

        The meaning of "copy" depends on the class of the object. Generally, for any object x, the expression:

         x.clone() != x
        is true, and the expression:
         x.clone().getClass() == x.getClass()
        is true.

        Overrides:
        clone in class java.lang.Object
        Returns:
        A clone of this object.
        Throws:
        java.lang.CloneNotSupportedException - If the object's class does not support the Cloneable interface.
        See Also:
        java.lang.Cloneable
IBM Business Process ManagerTM
Release 8