-
@Target(TYPE) @Retention(RUNTIME) public @interface FromStringFactoryAnnotation used on a type to indicate that another class, the factory, provides the 'from string' method.This annotation is applied at the type level, typically to an interface. It indicates the class which contains the relevant
FromStringannotation, which follows the normal rules.For example, the interface
Foocould be annotated to define its associated factory as beingFooFactory. TheFooFactoryclass would then be expected to provide a method returningFoowith a singleStringparameter, annotated withFromString.- Since:
- 1.4
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<?>factoryThe factory class containing the static method.
-