|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @Experimental public @interface FactoryMethod
Identifies a method in a class as a factory method. A factory method has always a configuration key in which the name of the implementing class is stored.
Required Element Summary | |
---|---|
String |
key
Contains the name of the configuration key. |
Optional Element Summary | |
---|---|
Class<?> |
implementation
The class of the default implementation if available. |
Element Detail |
---|
public abstract String key
public abstract Class<?> implementation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |