ebul-cmp/src/main/java/info/ebenoit/ebul/cmp/Component.java
Emmanuel BENOîT e2de94eb7b Importing some code
* Various annotations
* New component information class
2015-09-13 14:46:11 +02:00

25 lines
635 B
Java

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 "";
}