Interface DependencyPlanBinder


public interface DependencyPlanBinder
Responsible for registering the injection plan to the services in the service registry.

IMPORTANT: all methods must be called with ServiceDescriptor singleton instances for ServiceInfo parameter, as the registry depends on instance equality. All generated code is done this way.

  • Method Details

    • service

      Bind an injection plan to a service provider instance.
      Parameters:
      descriptor - the service to receive the injection plan.
      Returns:
      the binder to use for binding the injection plan to the service provider
    • interceptors

      void interceptors(ServiceInfo... descriptors)
      Bind all discovered interceptors.
      Parameters:
      descriptors - interceptor services