public final class ReplyHandlerWrapper
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
When the Human Task Manager is accessed through its EJB interface, then:
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.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Constructor and Description |
---|
ReplyHandlerWrapper()
Default constructor needed by deserialization.
|
ReplyHandlerWrapper(ReplyHandler object)
Constructor that stores the passed object.
|
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.
|
public static final java.lang.String COPYRIGHT
public ReplyHandlerWrapper()
null
.public ReplyHandlerWrapper(ReplyHandler object)
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
.public static ReplyHandlerWrapper fromByteArray(byte[] buffer)
buffer
- The serialized object to wrap.public ReplyHandler getObject() throws TaskException
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.
TaskException
- If an error occurrs during deserialization of the object.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
The meaning of "copy" depends on the class of the object. Generally, for any object x, the expression:
is true, and the expression:x.clone() != x
is true.x.clone().getClass() == x.getClass()
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- If the object's class does not support the Cloneable
interface.