Annotation Interface ServiceName


@Target(TYPE) @Retention(RUNTIME) public @interface ServiceName
Annotation to be used on class level to specify the default Service, which should be used when registering annotation-based handlers. If no name is given either via this annotation or via the service attribute of the Before, On or After annotation registration of the handler fails.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the names of the Service the handlers of this class should be registered on If no name is given either via this annotation or via the service attribute of the Before, On or After annotation registration of the handler fails.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends Service>[]
    Returns the array of service types the handler wants to handle.
  • Element Details

    • value

      String[] value
      Returns the names of the Service the handlers of this class should be registered on If no name is given either via this annotation or via the service attribute of the Before, On or After annotation registration of the handler fails.
      Returns:
      the name of the Service the handlers of this class should be registered on
    • type

      Class<? extends Service>[] type
      Returns the array of service types the handler wants to handle. This can be used together with a service name '*' to register on all services of certain types. If no type is given, all service types will be considered
      Defaults to an empty array
      Returns:
      the array of service types the handler wants to handle
      Default:
      {}