Annotation Interface Service


@Target(TYPE) @Retention(RUNTIME) public @interface Service
Service annotation to replace Spring's @Service.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Service priority.
    Service name.
  • Element Details

    • value

      String value
      Service name.
      Returns:
      service name
      Default:
      ""
    • priority

      int priority
      Service priority. Higher value means higher priority. When multiple implementations of the same interface exist, the one with highest priority will be returned by getBean(Class).
      Returns:
      priority value (default 0)
      Default:
      0