Annotation Type ServiceName


  • @Documented
    @Inherited
    @Retention(RUNTIME)
    @Target(TYPE)
    @Analyze("org.tentackle.buildsupport.ServiceAnalyzeHandler")
    public @interface ServiceName
    Annotation to express that the annotated class is a service implementation.
    Differs from @Service that the service can be some arbitrary name. Also useful if the serviced class is not within the scope.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value
      Gets the service name.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean meta
      Determines whether the servicing class is the annotated class or the value of the annotated annotation.
      Notice the difference between the serviced and servicing class!
    • Element Detail

      • value

        java.lang.String value
        Gets the service name.
        Returns:
        the service name
      • meta

        boolean meta
        Determines whether the servicing class is the annotated class or the value of the annotated annotation.
        Notice the difference between the serviced and servicing class!

        Meta services go to META-INF/meta-services instead of META-INF/services because the provider usually resides in another module.

        Returns:
        true if this a meta annotation and the servicing class is provided by the annotated annotation
        Default:
        false