Annotation Interface Converter


@Target({METHOD,TYPE}) @Retention(RUNTIME) @Documented public @interface Converter

Designates a static (factory) method as a converter. When the annotated class is used as field or collection element inside another class, converter methods are automatically translated into additional setters / adders.

Note that factory methods named "from*", or "of*" are automatically considered as converters.

If placed on a class, all public static non void methods are considered as factories.

The method must be static, return an instance of the annotated class and can contain an arbitrary number of parameters.