|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConverterRegistry
For registering converters with a type conversion system.
Method Summary | |
---|---|
void |
addConverter(java.lang.Class<?> sourceType,
java.lang.Class<?> targetType,
Converter<?,?> converter)
Add a plain converter to this registry. |
void |
addConverter(Converter<?,?> converter)
Add a plain converter to this registry. |
void |
addConverter(GenericConverter converter)
Add a generic converter to this registry. |
void |
addConverterFactory(ConverterFactory<?,?> converterFactory)
Add a ranged converter factory to this registry. |
void |
removeConvertible(java.lang.Class<?> sourceType,
java.lang.Class<?> targetType)
Remove any converters from sourceType to targetType. |
Method Detail |
---|
void addConverter(Converter<?,?> converter)
java.lang.IllegalArgumentException
- if the parameterized types could not be resolvedvoid addConverter(java.lang.Class<?> sourceType, java.lang.Class<?> targetType, Converter<?,?> converter)
void addConverter(GenericConverter converter)
void addConverterFactory(ConverterFactory<?,?> converterFactory)
java.lang.IllegalArgumentException
- if the parameterized types could not be resolved.void removeConvertible(java.lang.Class<?> sourceType, java.lang.Class<?> targetType)
sourceType
- the source typetargetType
- the target type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |