|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={})
@Retention(value=RUNTIME)
public static @interface XTemplates.FormatterFactoryDeclares that a class may act as a factory to provide formatter instances. Either the name attribute must be populated with the name that this factory will use in an XTemplate and the method getFormat will be called, or the methods must indicate a name and a methodName to be invoked on the factory.
| Required Element Summary | |
|---|---|
java.lang.Class<?> |
factory
|
| Optional Element Summary | |
|---|---|
boolean |
acceptsNull
True if the formatter can handle null values. |
XTemplates.FormatterFactoryMethod[] |
methods
Allows methods to be defined on a formatter factory with a name other that getFormat,
and allowed more than one factory method to be defined. |
java.lang.String |
name
The name of the formatter being registered. |
| Element Detail |
|---|
public abstract java.lang.Class<?> factory
public abstract java.lang.String name
methods() is assumed to
contain factory methods instead.
public abstract XTemplates.FormatterFactoryMethod[] methods
getFormat,
and allowed more than one factory method to be defined.
public abstract boolean acceptsNull
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||