org.jbpm.delegation
Interface Serializer

All Superinterfaces:
java.io.Serializable

public interface Serializer
extends java.io.Serializable

performs (de)serialisation of variable-values (which are ordinary java-objects), for storage in the database. It is even possible to use a java-type unknown to jBpm as variable-value.


Method Summary
 java.lang.Object deserialize(java.lang.String text)
          deserializes the value of a variable, making a POJO (plain old java object) from the text that was stored in the database.
 java.lang.String serialize(java.lang.Object object)
          serializes the value of a variable to text for storage in the database.
 

Method Detail

serialize

public java.lang.String serialize(java.lang.Object object)
serializes the value of a variable to text for storage in the database.

Parameters:
object - is the java-object that represents the value for the variable.
Throws:
java.lang.IllegalArgumentException - if object is not serializable by this serializer

deserialize

public java.lang.Object deserialize(java.lang.String text)
deserializes the value of a variable, making a POJO (plain old java object) from the text that was stored in the database.

Returns:
the java-object that represents the value for the variable.


Version : jbpm-2.0