Top Description Methods
org.joda.convert

public @Interface FromStringFactory

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Annotation 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 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.

Since
1.4

Method Summary

Modifier and TypeMethod and Description
public Class<?>

Returns:

the factory type
factory
()

The factory class containing the static method.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

factoryback to summary
public Class<?> factory()

The factory class containing the static method. The static method must have a return type of the type that declares the factory annotation.

Returns:Class<?>

the factory type