Annotation Type Priority


  • @Target(TYPE)
    @Retention(RUNTIME)
    @Documented
    public @interface Priority
    Defines the priority ordering of a bean, higher values have higher priority:

     @Named
     @Priority( 999 )
     public class ImportantComponent
     {
         //
     }
     
    Implicit priorities start at zero for default beans, negative for non-default.
    See Also:
    RankingFunction, BeanEntry.getRank()
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      int value  
    • Element Detail

      • value

        int value