1 package org.jbpm.context.exe; 2 3 import java.io.*; 4 5 /** 6 * converts plain objects to objects that are 7 * persistable via a subclass of VariableInstance. 8 */ 9 public interface Converter extends Serializable { 10 11 /** 12 * is true if this converter supports the given type, false otherwise. 13 */ 14 boolean supports(Class clazz); 15 16 /** 17 * converts a given object to its persistable format. 18 */ 19 Object convert(Object o); 20 21 /** 22 * reverts a persisted object to its original form. 23 */ 24 Object revert(Object o); 25 } 26