Class EmptyBinding

java.lang.Object
io.helidon.service.registry.EmptyBinding
All Implemented Interfaces:
Binding

public class EmptyBinding extends Object implements 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.

  • Constructor Details

    • EmptyBinding

      protected EmptyBinding(String name)
      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

      public String name()
      Description copied from interface: Binding
      Name of this application binding.
      Specified by:
      name in interface Binding
      Returns:
      binding name
    • binding

      public void binding(DependencyPlanBinder binder)
      Description copied from interface: Binding
      For each service in this application, bind services that satisfy its injection points.
      Specified by:
      binding in interface Binding
      Parameters:
      binder - the binder used to register the service provider dependency injection plan
    • configure

      public void configure(ServiceRegistryConfig.Builder builder)
      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.

      Specified by:
      configure in interface Binding
      Parameters:
      builder - configuration builder to register service descriptors
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • warnEmpty

      protected void warnEmpty()
      Warns that an empty binding was generated and not overridden by the Service Maven Plugin. The message references Service.GenerateBinding.