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).voidmaterialize()Ensures this configuration is loaded.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.
-
materialize
void materialize()
Ensures this configuration is loaded. Subsequent method invocations on this instance are guaranteed to not touch MP Config.
-
isEnabled
static <A extends Annotation> boolean isEnabled(Class<A> annotationType, MethodDescriptor method)
-
-