Annotation Type AlternativePriority


  • @Retention(RUNTIME)
    @Target({METHOD,TYPE,FIELD})
    public @interface AlternativePriority
    If a bean is annotated with this annotation, it is considered an enabled alternative with given priority. Effectively, this is a shortcut for Alternative plus Priority annotations. This annotation can be used not only on bean classes, but also method and field producers (unlike pure Priority.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      int value
      The priority value of this alternative
    • Element Detail

      • value

        int value
        The priority value of this alternative