Annotation Type Priority


@Retention(RUNTIME)
@Target(TYPE)
public @interface Priority
Defines the priority of the component in a way that the small values are the highest priority component. The container will use this annotation to find out the default implementation (the one with highest priority) for the given service.
Author:
Gilberto Vento
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    int value
    The priority of the component.
  • Element Details

    • value

      int value
      The priority of the component.

      Returns:
      An integer witch represents the priority of the component.
      Default:
      2147483647