org.apache.camel.impl.converter
Class AsyncProcessorTypeConverter

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

public class AsyncProcessorTypeConverter
extends TypeConverterSupport

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:

Constructor Summary
AsyncProcessorTypeConverter()
           
 
Method Summary
static AsyncProcessor convert(Processor value)
          Deprecated. use AsyncProcessorConverterHelper.convert(org.apache.camel.Processor) instead
<T> T
convertTo(Class<T> type, Exchange exchange, Object value)
          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).

 
Methods inherited from class org.apache.camel.support.TypeConverterSupport
convertTo, mandatoryConvertTo, mandatoryConvertTo, tryConvertTo, tryConvertTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncProcessorTypeConverter

public AsyncProcessorTypeConverter()
Method Detail

convertTo

public <T> T convertTo(Class<T> type,
                       Exchange exchange,
                       Object value)
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).

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

convert

@Deprecated
public static AsyncProcessor convert(Processor value)
Deprecated. use AsyncProcessorConverterHelper.convert(org.apache.camel.Processor) instead



Apache CAMEL