org.apache.camel.impl.converter
Class PropertyEditorTypeConverter

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

Deprecated. should be removed as it can cause side-effects when using 3rd party property editors

@Deprecated
public class PropertyEditorTypeConverter
extends Object
implements TypeConverter

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

Version:

Constructor Summary
PropertyEditorTypeConverter()
          Deprecated.  
 
Method Summary
 void clear()
          Deprecated.  
<T> T
convertTo(Class<T> type, Exchange exchange, Object value)
          Deprecated. Converts the value to the specified type in the context of an exchange

Used when conversion requires extra information from the current exchange (such as encoding).

<T> T
convertTo(Class<T> type, Object value)
          Deprecated. Converts the value to the specified type
<T> T
mandatoryConvertTo(Class<T> type, Exchange exchange, Object value)
          Deprecated. Converts the value to the specified type in the context of an exchange

Used when conversion requires extra information from the current exchange (such as encoding).

<T> T
mandatoryConvertTo(Class<T> type, Object value)
          Deprecated. Converts the value to the specified type
<T> T
tryConvertTo(Class<T> type, Exchange exchange, Object value)
          Deprecated. Tries to convert the value to the specified type in the context of an exchange, returning null if not possible to convert.
<T> T
tryConvertTo(Class<T> type, Object value)
          Deprecated. Tries to convert the value to the specified type, returning null if not possible to convert.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyEditorTypeConverter

public PropertyEditorTypeConverter()
Deprecated. 
Method Detail

clear

public void clear()
Deprecated. 

convertTo

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

Specified by:
convertTo in interface TypeConverter
Parameters:
type - the requested type
value - the value to be converted
Returns:
the converted value, or null if not possible to convert

convertTo

public <T> T convertTo(Class<T> type,
                       Exchange exchange,
                       Object value)
Deprecated. 
Description copied from interface: TypeConverter
Converts the value to the specified type in the context of an exchange

Used when conversion requires extra information from the current exchange (such as encoding).

Specified by:
convertTo in interface TypeConverter
Parameters:
type - the requested type
exchange - the current exchange
value - the value to be converted
Returns:
the converted value, or null if not possible to convert

mandatoryConvertTo

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

Specified by:
mandatoryConvertTo in interface TypeConverter
Parameters:
type - the requested type
value - the value to be converted
Returns:
the converted value, is never null

mandatoryConvertTo

public <T> T mandatoryConvertTo(Class<T> type,
                                Exchange exchange,
                                Object value)
Deprecated. 
Description copied from interface: TypeConverter
Converts the value to the specified type in the context of an exchange

Used when conversion requires extra information from the current exchange (such as encoding).

Specified by:
mandatoryConvertTo in interface TypeConverter
Parameters:
type - the requested type
exchange - the current exchange
value - the value to be converted
Returns:
the converted value, is never null

tryConvertTo

public <T> T tryConvertTo(Class<T> type,
                          Exchange exchange,
                          Object value)
Deprecated. 
Description copied from interface: TypeConverter
Tries to convert the value to the specified type in the context of an exchange, returning null if not possible to convert.

This method will not throw an exception if an exception occurred during conversion. Converts the value to the specified type in the context of an exchange

Used when conversion requires extra information from the current exchange (such as encoding).

Specified by:
tryConvertTo in interface TypeConverter
Parameters:
type - the requested type
exchange - the current exchange
value - the value to be converted
Returns:
the converted value, or null if not possible to convert

tryConvertTo

public <T> T tryConvertTo(Class<T> type,
                          Object value)
Deprecated. 
Description copied from interface: TypeConverter
Tries to convert the value to the specified type, returning null if not possible to convert.

This method will not throw an exception if an exception occurred during conversion.

Specified by:
tryConvertTo in interface TypeConverter
Parameters:
type - the requested type
value - the value to be converted
Returns:
the converted value, or null if not possible to convert


Apache CAMEL