|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypeConverterRegistry
Registry for type converters.
| 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 |
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. |
| 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)
typeConverter - the type converter to use
TypeConverter lookup(Class toType,
Class fromType)
toType - the type to convert tofromType - the type to convert from
void setInjector(Injector injector)
Injector getInjector()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||