java.lang.Object
io.helidon.service.registry.EmptyBinding
- All Implemented Interfaces:
Binding
An empty binding that configures nothing.
This is used as a base class for bindings generated during annotation processing, to be later replaced by
the helidon-service-maven-plugin
.
Do not extend this class for custom binding implementations, as it will be ignored by some components, as any instance that is an instance of this class will have special handling.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
binding
(DependencyPlanBinder binder) For each service in this application, bind services that satisfy its injection points.void
configure
(ServiceRegistryConfig.Builder builder) Register all services with the configuration.name()
Name of this application binding.toString()
protected void
Warns that an empty binding was generated and not overridden by the Service Maven Plugin.
-
Constructor Details
-
EmptyBinding
Create a new named binding. The name usually reflects the module, and the package of the application, though it is an arbitrary string.- Parameters:
name
- name of this binding
-
-
Method Details
-
name
Description copied from interface:Binding
Name of this application binding. -
binding
Description copied from interface:Binding
For each service in this application, bind services that satisfy its injection points. -
configure
Description copied from interface:Binding
Register all services with the configuration. When application binding is available to the registry, automatic discovery of services is disabled, and only services registered in this method will be used by the registry.The services registered in this method must be aligned with
Binding.binding(DependencyPlanBinder)
, as otherwise inconsistent registry would be created. -
toString
-
warnEmpty
protected void warnEmpty()Warns that an empty binding was generated and not overridden by the Service Maven Plugin. The message referencesService.GenerateBinding
.
-