Annotation Interface Conditional


@Retention(RUNTIME) @Target(ANNOTATION_TYPE) @Documented public @interface Conditional
Meta-annotation for conditional annotations to reference the implementing Condition class to handle conditional checks for whether the bindings present in a bundle instance should be registered. When a bundle class is annotated with one or more conditional annotations, then these conditions are applied to all factory methods from that class. When a bundle method is annotated with one or more conditional annotations, then these conditions are applied to that method in addition to any conditions defined on the bundle class.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Condition>
    Implementation class to use for performing conditional checks when a bundle class or bundle method is annotated with the conditional annotation this annotation is present on.
  • Element Details

    • value

      Class<? extends Condition> value
      Implementation class to use for performing conditional checks when a bundle class or bundle method is annotated with the conditional annotation this annotation is present on.