org.apache.camel.impl.converter
Class PropertyEditorTypeConverter

java.lang.Object
  extended by org.apache.camel.impl.converter.PropertyEditorTypeConverter
All Implemented Interfaces:
TypeConverter

public class PropertyEditorTypeConverter
extends Object
implements TypeConverter

Uses the java.beans.PropertyEditor conversion system to convert Objects to and from String values.

Version:
$Revision: 36321 $

Constructor Summary
PropertyEditorTypeConverter()
           
 
Method Summary
<T> T
convertTo(Class<T> toType, Object value)
          Converts the value to the specified type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyEditorTypeConverter

public PropertyEditorTypeConverter()
Method Detail

convertTo

public <T> T convertTo(Class<T> toType,
                       Object value)
Description copied from interface: TypeConverter
Converts the value to the specified type

Specified by:
convertTo in interface TypeConverter
Parameters:
toType - the requested type
value - the value to be converted
Returns:
the converted value or null if it can not be converted


Copyright © 2008 IONA Open Source Community. All Rights Reserved.