org.jbpm.context.exe.converter
Class SerializableToByteArrayConverter

java.lang.Object
  extended by org.jbpm.context.exe.converter.SerializableToByteArrayConverter
All Implemented Interfaces:
java.io.Serializable, ContextConverter<java.io.Serializable,ByteArray>, Converter<java.io.Serializable,ByteArray>

public class SerializableToByteArrayConverter
extends java.lang.Object
implements ContextConverter<java.io.Serializable,ByteArray>

See Also:
Serialized Form

Constructor Summary
SerializableToByteArrayConverter()
           
 
Method Summary
 ByteArray convert(java.io.Serializable o)
          converts a given object to its persistable format.
 java.io.Serializable revert(ByteArray o)
          reverts a persisted object to its original form.
 java.io.Serializable revert(ByteArray o, Token token)
          reverts a persisted object to its original form, in the context of the given token.
 boolean supports(java.lang.Object value)
          is true if this converter supports the given type, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableToByteArrayConverter

public SerializableToByteArrayConverter()
Method Detail

supports

public boolean supports(java.lang.Object value)
Description copied from interface: Converter
is true if this converter supports the given type, false otherwise.

Specified by:
supports in interface Converter<java.io.Serializable,ByteArray>

convert

public ByteArray convert(java.io.Serializable o)
Description copied from interface: Converter
converts a given object to its persistable format.

Specified by:
convert in interface Converter<java.io.Serializable,ByteArray>

revert

public java.io.Serializable revert(ByteArray o)
Description copied from interface: Converter
reverts a persisted object to its original form.

Specified by:
revert in interface Converter<java.io.Serializable,ByteArray>

revert

public java.io.Serializable revert(ByteArray o,
                                   Token token)
Description copied from interface: ContextConverter
reverts a persisted object to its original form, in the context of the given token.

Specified by:
revert in interface ContextConverter<java.io.Serializable,ByteArray>


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.