Package nbbrd.service

Annotation Type ServiceId


@Documented @Target(METHOD) @Retention(SOURCE) public @interface ServiceId
Specifies that a method can be used to retrieve an identifier on a service. This annotation must be used in conjunction with ServiceDefinition.

The annotated method must follow the following rules:

  1. Id method only applies to methods of a service
  2. Id method does not apply to static methods
  3. Id method must have no-args
  4. Id method must return String
  5. Id method must be unique
  6. Id method must not throw checked exceptions
  7. Id pattern must be valid