net.sf.eos.config
Annotation Type FactoryMethod


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

Author:
Sascha Kohlmann

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

key

public abstract String key
Contains the name of the configuration key.

Returns:
the configuration key.

implementation

public abstract Class<?> implementation
The class of the default implementation if available.

Returns:
the name of the default implementation.
Default:
net.sf.eos.config.FactoryMethod.None.class


Copyright © 2008. All Rights Reserved.