org.milyn.javabean.decoders
Class ClassDecoder

java.lang.Object
  extended by org.milyn.javabean.decoders.ClassDecoder
All Implemented Interfaces:
Serializable, DataDecoder

@DecodeType(value=java.lang.Class.class)
public class ClassDecoder
extends Object
implements DataDecoder

Class decoder.

Decodes the supplied data as a Class name to return a Class instance.

Author:
tom.fennelly@gmail.com
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.milyn.javabean.DataDecoder
DataDecoder.Factory
 
Constructor Summary
ClassDecoder()
           
 
Method Summary
 Object decode(String data)
          Decode the supplied String data into a new Object data instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDecoder

public ClassDecoder()
Method Detail

decode

public Object decode(String data)
              throws DataDecodeException
Description copied from interface: DataDecoder
Decode the supplied String data into a new Object data instance.

Specified by:
decode in interface DataDecoder
Parameters:
data - Data to be decoded.
Returns:
Decoded data Object.
Throws:
DataDecodeException - Error decoding data.


Copyright © 2018. All rights reserved.