Interface Config


public interface Config
  • 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 default method) in the config interface.

    • beanClass

      Class<?> beanClass()
    • 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)