|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A - type of annotation mentioning this converterT - conversion target typepublic interface Converter<A extends Annotation,T>
Defines the logic to convert parameter annotated with A to type T. Converter must have a public no-args constructor. Configuration is
done via initialize(java.lang.annotation.Annotation) method
Inspired by javax.validation.ConstraintValidator
| Method Summary | |
|---|---|
T |
convert(Object param)
Converts param to desired type. |
void |
initialize(A annotation)
Initializes this converter - you can read your annotation config here. |
| Method Detail |
|---|
void initialize(A annotation)
T convert(Object param)
throws ConversionFailedException
ConversionFailedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||