|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeConverterRegistry
Registry for type converters.
Nested Class Summary | |
---|---|
static interface |
TypeConverterRegistry.Statistics
Utilization statistics of the this registry. |
Method Summary | |
---|---|
void |
addFallbackTypeConverter(TypeConverter typeConverter,
boolean canPromote)
Registers a new fallback type converter |
void |
addTypeConverter(Class<?> toType,
Class<?> fromType,
TypeConverter typeConverter)
Registers a new type converter |
Injector |
getInjector()
Gets the injector |
TypeConverterRegistry.Statistics |
getStatistics()
Gets the utilization statistics of this type converter registry |
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 conversions. |
Methods inherited from interface org.apache.camel.Service |
---|
start, stop |
Method Detail |
---|
void addTypeConverter(Class<?> toType, Class<?> fromType, TypeConverter typeConverter)
toType
- the type to convert tofromType
- the type to convert fromtypeConverter
- the type converter to usevoid addFallbackTypeConverter(TypeConverter typeConverter, boolean canPromote)
typeConverter
- the type converter to usecanPromote
- whether or not the fallback type converter can be promoted to a first class type converterTypeConverter lookup(Class<?> toType, Class<?> fromType)
toType
- the type to convert tofromType
- the type to convert from
void setInjector(Injector injector)
injector
- the injectorInjector getInjector()
TypeConverterRegistry.Statistics getStatistics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |