![JAR search and dependency download from the Maven repository](/logo.png)
xdean.jex.extra.annotation.marker.ComponentDependents Maven / Gradle / Ivy
The newest version!
package xdean.jex.extra.annotation.marker;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import java.lang.annotation.Documented;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicates that the element is component dependent.
* Provide comments for each component.
*
* @author XDean
*/
@Documented
@Retention(RetentionPolicy.SOURCE)
@Target({ TYPE, METHOD, FIELD, CONSTRUCTOR })
public @interface ComponentDependents {
@Documented
@Retention(RetentionPolicy.SOURCE)
@Repeatable(ComponentDependents.class)
public @interface ComponentDependent {
/**
* Dependent components
*/
String[] component() default "";
/**
* Comment about the usage
*
* @return
*/
String comment() default "";
/**
* Support these components or not.
*/
boolean support() default true;
}
ComponentDependent[] value() default {};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy