Interface ServiceInjectionPlanBinder.Binder

Enclosing interface:
ServiceInjectionPlanBinder

public static interface ServiceInjectionPlanBinder.Binder
The binder builder for the service plan.
See Also:
  • InjectionPointInfo
  • Method Details

    • bind

      Binds a single service provider to the injection point identified by InjectionPointInfoBlueprint.id(). It is assumed that the caller of this is aware of the proper cardinality for each injection point.
      Parameters:
      id - the injection point identity
      serviceProvider - the service provider to bind to this identity.
      Returns:
      the binder builder
    • bindMany

      ServiceInjectionPlanBinder.Binder bindMany(String id, ServiceProvider<?>... serviceProviders)
      Binds a list of service providers to the injection point identified by InjectionPointInfoBlueprint.id(). It is assumed that the caller of this is aware of the proper cardinality for each injection point.
      Parameters:
      id - the injection point identity
      serviceProviders - the list of service providers to bind to this identity
      Returns:
      the binder builder
    • bindVoid

      Represents a void / null bind, only applicable for an Optional injection point.
      Parameters:
      id - the injection point identity
      Returns:
      the binder builder
    • resolvedBind

      ServiceInjectionPlanBinder.Binder resolvedBind(String id, Class<?> serviceType)
      Represents injection points that cannot be bound at startup, and instead must rely on a deferred resolver based binding. Typically, this represents some form of dynamic or configurable instance.
      Parameters:
      id - the injection point identity
      serviceType - the service type needing to be resolved
      Returns:
      the binder builder
    • commit

      void commit()
      Commits the bindings for this service provider.