Class OnPropertyCondition

java.lang.Object
be.imgn.inject.context.OnPropertyCondition
All Implemented Interfaces:
Condition

public final class OnPropertyCondition extends Object implements Condition
  • Constructor Details

    • OnPropertyCondition

      public OnPropertyCondition()
      Creates the condition. Instantiated by ServiceLoader.
  • Method Details

    • annotationType

      public Class<? extends Annotation> annotationType()
      Description copied from interface: Condition
      Returns the conditioning annotation this condition handles.
      Specified by:
      annotationType in interface Condition
      Returns:
      the conditioning annotation this condition handles
    • matches

      public boolean matches(ConditionContext context, AnnotationValue annotation)
      Description copied from interface: Condition
      Returns whether the bean should be registered.
      Specified by:
      matches in interface Condition
      Parameters:
      context - the evaluation environment
      annotation - the conditioning annotation's captured value, including its members
      Returns:
      whether the bean should be registered