ebul-cmp/src/main/java/info/ebenoit/ebul/cmp/Component.java

26 lines
635 B
Java
Raw Normal View History

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 indicates that a class will be considered as a component. The optional value specifies the
* component's name if it differs from the class' name.
*
* @author <a href="mailto:ebenoit@ebenoit.info">E. Benoît</a>
*/
@Retention( RetentionPolicy.RUNTIME )
@Target( ElementType.TYPE )
public @interface Component
{
/** Name of the component (blank to use the class' name) */
public String value( ) default "";
}