org.apache.camel.impl.converter
Class AsyncProcessorTypeConverter
java.lang.Object
org.apache.camel.impl.converter.AsyncProcessorTypeConverter
- All Implemented Interfaces:
- TypeConverter
public class AsyncProcessorTypeConverter
- extends Object
- implements TypeConverter
A simple converter that can convert any Processor
to an AsyncProcessor
.
Processing will still occur synchronously but it will provide the required
notifications that the caller expects.
- Version:
- $Revision: 46981 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncProcessorTypeConverter
public AsyncProcessorTypeConverter()
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 typevalue
- the value to be converted
- Returns:
- the converted value or null if it can not be converted
convertTo
public <T> T convertTo(Class<T> toType,
Exchange exchange,
Object value)
- Description copied from interface:
TypeConverter
- Converts the value to the specified type in the context of an exchange
- Specified by:
convertTo
in interface TypeConverter
- Parameters:
toType
- the requested typevalue
- the value to be converted
- Returns:
- the converted value or null if it can not be converted
Used when conversion requires extra information from the current
exchange (such as encoding).
convert
public static AsyncProcessor convert(Processor value)
Copyright © 2008 IONA Open Source Community. All Rights Reserved.