Annotation Interface Service.Describe

Enclosing class:
Service

@Documented @Retention(CLASS) @Target(TYPE) public static @interface Service.Describe
Describe the annotated type. This will generate a service descriptor that cannot create an instance. This is useful for scoped instances that are provided when the scope is activated.

This annotation will ignore type hierarchy (the descriptor will never have a super type).

  • Element Details

    • value

      Class<? extends Annotation> value
      Customize the scope to use, defaults to Service.Singleton.
      Returns:
      scope to use for the generated service descriptor
      Default:
      io.helidon.service.registry.Service.Singleton.class