Module io.helidon.builder.api
Package io.helidon.builder.api
Annotation Interface Prototype.RegistrySupport
- Enclosing class:
Prototype
Generate support for Service Registry (
helidon-service-registry
) for any option that is annotated
as Option.Provider
.
When enabled (i.e. when this annotation is present), the service registry would be used to discover any service
implementations including implementations discovered by service loader - appropriate service.loader
metadata file will be generated for the service provider interfaces.
Simply add this annotation to your Prototype.Blueprint
type to enable service registry.
Note that if this annotation is NOT present, service registry would not be used, and ServiceLoader
is used instead.
When using this annotation, you cannot use serviceRegistry
as a custom option in your blueprint, as it will
be added by the annotation processor, to allow customization of the registry instance.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Whether to enable (default) or disable (set tofalse
) registry support for this blueprint.
-
Element Details
-
value
boolean valueWhether to enable (default) or disable (set tofalse
) registry support for this blueprint.- Returns:
- whether the registry support should be enabled
- Default:
true
-