package info.ebenoit.ebul.cmp; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * This annotation can be used to create automatically filled singleton fields that correspond to components. It can * only be used on static, public fields. *

* If a string is given, it will be used as the component's name. Otherwise the component to fetch will be determined * using the field's type. * * @author E. BenoƮt */ @Retention( RetentionPolicy.RUNTIME ) @Target( ElementType.METHOD ) public @interface ComponentSingleton { public String value( ) default ""; }