Interface Config
-
public interface Config
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<? extends Annotation>annotationType()Class<?>beanClass()static <A extends Annotation>
booleanisEnabled(Class<A> annotationType, MethodDescriptor method)booleanisOnMethod()Returns whether the annotation is present on method or not (in which case, it is present on the class).MethodDescriptormethod()voidvalidate()Defines local validation, that is, validation of the single annotation the config interface represents.
-
-
-
Method Detail
-
validate
void validate()
Defines local validation, that is, validation of the single annotation the config interface represents. Global validation (such as cross-checking configuration across multiple annotations) must be done elsewhere.Must be implemented (as a
defaultmethod) in the config interface.
-
beanClass
Class<?> beanClass()
-
method
MethodDescriptor method()
-
annotationType
Class<? extends Annotation> annotationType()
-
isOnMethod
boolean isOnMethod()
Returns whether the annotation is present on method or not (in which case, it is present on the class). This is useful when two annotations conflict, in which case the one on method has priority over the one on class.
-
isEnabled
static <A extends Annotation> boolean isEnabled(Class<A> annotationType, MethodDescriptor method)
-
-