Annotation Interface LcdService


@Retention(RUNTIME) @Documented @Target(TYPE) public @interface LcdService
Indicates that the annotated class should be listed into the META-INF/services/CONTRACTNAME.

  • If the class for which this annotation is placed only has one base class or one interface, then the CONTRACTNAME is the fully qualified name of that type.
  • Otherwise, the service() element is required to specify the contract type name.

The annotation also has an optional priority() element that can be used to order the services.

  • Default is 10000
  • Higher values mean lower priority
  • Lower (up to and including zero) values mean higher priority
  • Built-in values are HIGH_PRIORITY, DEFAULT_PRIORITY, LOW_PRIORITY and FALLBACK_PRIORITY

The annotation is retained at runtime.

The TLcdServiceAnnotationProcessor processes these annotations to automatically create corresponding files in the META-INF/services folders at compile time.

Since:
2013.0
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Returns the specified priority.
    Returns the service class.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Default priority.
    static final int
    Fallback priority.
    static final int
    High priority.
    static final int
    Low priority.
  • Field Details

  • Element Details

    • service

      Class service
      Returns the service class.
      Returns:
      the service class.
      Default:
      void.class
    • priority

      int priority
      Returns the specified priority. Lower values mean higher priority.
      Returns:
      the specified priority.
      Default:
      10000