Interface Config
public interface Config
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation> Class<?> static <A extends Annotation>
booleanisEnabled(Class<A> annotationType, MethodDescriptor method) booleanReturns whether the annotation is present on method or not (in which case, it is present on the class).voidEnsures this configuration is loaded.method()voidvalidate()Defines local validation, that is, validation of the single annotation the config interface represents.
-
Method Details
-
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
-