Annotation Type Unqualified


@Documented @Retention(RUNTIME) @Target({FIELD,PARAMETER}) public @interface Unqualified
An injection point can be annotated with @Unqualified if it should only be injected with services that have no qualifiers at all
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends Annotation>[]
    The list of qualifiers that must NOT be present on the service.
  • Element Details

    • value

      Class<? extends Annotation>[] value
      The list of qualifiers that must NOT be present on the service. If this list is empty then there must be NO qualifiers at all on the service returned. If this list is not empty then the service must not have ANY of the listed qualifiers (with any values).
      Returns:
      The set of qualifiers that the service must NOT have
      Default:
      {}