Package org.infinispan.query.impl
Class DefaultTransformer
- java.lang.Object
-
- org.infinispan.query.impl.DefaultTransformer
-
- All Implemented Interfaces:
Transformer
public final class DefaultTransformer extends Object implements Transformer
WARNING, slow as a senile dog, uses Java Serialization and base64 encoding to get a String representation of an Object. It is highly recommended that you provide your own implementation ofTransformer.- Author:
- Navin Surtani, anistor@redhat.com
-
-
Constructor Summary
Constructors Constructor Description DefaultTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectfromString(String str)Transforms a String into an Object.StringtoString(Object obj)Transforms an Object into a String.
-
-
-
Method Detail
-
fromString
public Object fromString(String str)
Description copied from interface:TransformerTransforms a String into an Object.- Specified by:
fromStringin interfaceTransformer- Parameters:
str- cannot be null- Returns:
- the Object that is encoded in the given String
-
toString
public String toString(Object obj)
Description copied from interface:TransformerTransforms an Object into a String.- Specified by:
toStringin interfaceTransformer- Parameters:
obj- cannot be null- Returns:
- the String representation of the object
-
-