@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
public @interface Factory
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<? extends TypeFactory> |
factory
A class that can convert a string to an instance of the class.
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
method
The name of a static method that can convert a string to an instance
of the class.
|
public abstract java.lang.Class<? extends TypeFactory> factory