org.apache.camel.impl
Class ReportingTypeConverterRegistry

java.lang.Object
  extended by org.apache.camel.impl.ReportingTypeConverterRegistry
All Implemented Interfaces:
TypeConverterRegistry

public class ReportingTypeConverterRegistry
extends Object
implements TypeConverterRegistry

Registry for reporting type converters.

Used by the camel-maven-plugin.


Constructor Summary
ReportingTypeConverterRegistry()
           
 
Method Summary
 void addFallbackTypeConverter(TypeConverter typeConverter)
          Registers a new fallback type converter
 void addTypeConverter(Class toType, Class fromType, TypeConverter typeConverter)
          Registers a new type converter
 String[] getErrors()
           
 Injector getInjector()
          Gets the injector
 TypeConverter lookup(Class toType, Class fromType)
          Performs a lookup for a given type converter.
 void setInjector(Injector injector)
          Sets the injector to be used for creating new instances during type convertions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportingTypeConverterRegistry

public ReportingTypeConverterRegistry()
Method Detail

getErrors

public String[] getErrors()

addTypeConverter

public void addTypeConverter(Class toType,
                             Class fromType,
                             TypeConverter typeConverter)
Description copied from interface: TypeConverterRegistry
Registers a new type converter

Specified by:
addTypeConverter in interface TypeConverterRegistry
Parameters:
toType - the type to convert to
fromType - the type to convert from
typeConverter - the type converter to use

addFallbackTypeConverter

public void addFallbackTypeConverter(TypeConverter typeConverter)
Description copied from interface: TypeConverterRegistry
Registers a new fallback type converter

Specified by:
addFallbackTypeConverter in interface TypeConverterRegistry
Parameters:
typeConverter - the type converter to use

lookup

public TypeConverter lookup(Class toType,
                            Class fromType)
Description copied from interface: TypeConverterRegistry
Performs a lookup for a given type converter.

Specified by:
lookup in interface TypeConverterRegistry
Parameters:
toType - the type to convert to
fromType - the type to convert from
Returns:
the type converter or null if not found.

setInjector

public void setInjector(Injector injector)
Description copied from interface: TypeConverterRegistry
Sets the injector to be used for creating new instances during type convertions.

Specified by:
setInjector in interface TypeConverterRegistry

getInjector

public Injector getInjector()
Description copied from interface: TypeConverterRegistry
Gets the injector

Specified by:
getInjector in interface TypeConverterRegistry


Apache CAMEL