@Retention(RUNTIME)
@Inherited
@Target({FIELD,METHOD,ANNOTATION_TYPE})
public @interface Convert
Conversion
to be executed (Conversion.execute(Object)
)
when writing to the field and reverted (Conversion.revert(Object)
) when reading from the field.Conversion
,
Conversions
,
BeanProcessor
,
BeanWriterProcessor
Modifier and Type | Required Element | Description |
---|---|---|
java.lang.Class<? extends Conversion> |
conversionClass |
A user provided implementation of
Conversion which will be instantiated using the arguments provided by args() |
Modifier and Type | Optional Element | Description |
---|---|---|
java.lang.String[] |
args |
The arguments to use when invoking the constructor of the class given by
conversionClass() . |
java.lang.Class<? extends Conversion> conversionClass
Conversion
which will be instantiated using the arguments provided by args()
java.lang.String[] args
conversionClass()
.