|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypeConverterRegistry
Registry for type converters.
The utilizationTypeConverterRegistry.Statistics is by default disabled, as it has a slight performance impact under very high
concurrent load. The statistics can be enabled using TypeConverterRegistry.Statistics.setStatisticsEnabled(boolean) method.
| 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 |
List<Class<?>[]> |
listAllTypeConvertersFromTo()
Gets a read-only list of the type converter from / to classes |
TypeConverter |
lookup(Class<?> toType,
Class<?> fromType)
Performs a lookup for a given type converter. |
boolean |
removeTypeConverter(Class<?> toType,
Class<?> fromType)
Removes the type converter |
void |
setInjector(Injector injector)
Sets the injector to be used for creating new instances during type conversions. |
int |
size()
Number of type converters in the registry. |
| 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 use
boolean removeTypeConverter(Class<?> toType,
Class<?> fromType)
toType - the type to convert tofromType - the type to convert from
void 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 converter
TypeConverter lookup(Class<?> toType,
Class<?> fromType)
toType - the type to convert tofromType - the type to convert from
List<Class<?>[]> listAllTypeConvertersFromTo()
void setInjector(Injector injector)
injector - the injectorInjector getInjector()
TypeConverterRegistry.Statistics getStatistics()
int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||