Annotation Type Convert
-
@Retention(RUNTIME) @Inherited @Target({FIELD,METHOD,ANNOTATION_TYPE}) public @interface Convert
Assigns a custom implementation ofConversion
to be executed (Conversion.execute(Object)
) when writing to the field and reverted (Conversion.revert(Object)
) when reading from the field.- See Also:
Conversion
,Conversions
,BeanProcessor
,BeanWriterProcessor
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends Conversion>
conversionClass
A user provided implementation ofConversion
which will be instantiated using the arguments provided byargs()
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String[]
args
The arguments to use when invoking the constructor of the class given byconversionClass()
.
-
-
-
Element Detail
-
conversionClass
java.lang.Class<? extends Conversion> conversionClass
A user provided implementation ofConversion
which will be instantiated using the arguments provided byargs()
- Returns:
- custom class used to convert values
-
-
-
args
java.lang.String[] args
The arguments to use when invoking the constructor of the class given byconversionClass()
.- Returns:
- list of arguments create a new instance of the custom conversion class.
- Default:
- {}
-
-