@Target(TYPE)
@Retention(RUNTIME)
public @interface FromStringFactory
This annotation is applied at the type level, typically to an interface.
It indicates the class which contains the relevant FromString
annotation, which follows the normal rules.
For example, the interface Foo
could be annotated to define its
associated factory as being FooFactory
. The FooFactory
class would then be expected to provide a method returning Foo
with a single String
parameter, annotated with FromString
.
Modifier and Type | Required Element | Description |
---|---|---|
java.lang.Class<?> |
factory |
The factory class containing the static method.
|
Copyright © 2010–2018 Joda.org. All rights reserved.