Annotation Interface MappedService


@Documented @Retention(RUNTIME) @Target(ANNOTATION_TYPE) @Analyze("org.tentackle.buildsupport.MappedServiceAnalyzeHandler") public @interface MappedService
Annotation to mark an annotation to be processed by the MappedServiceAnalyzeHandler.
For each class annotated with the marked annotation, a line <annotated class> = <value> is appended to META-INF/mapped-services/<service class> (see Constants.MAPPED_SERVICE_PATH). The mappings are read via ServiceFinder.createNameMap(String).
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The service class.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the element of the marked annotation that provides the mapped value.
    The default is "value".
  • Element Details

    • value

      Class<?> value
      The service class.
      Returns:
      the service class
    • method

      String method
      The name of the element of the marked annotation that provides the mapped value.
      The default is "value".
      Returns:
      the element name
      Default:
      "value"