Module io.helidon.inject.api
Package io.helidon.inject.api
Interface ServiceInjectionPlanBinder.Binder
- Enclosing interface:
ServiceInjectionPlanBinder
public static interface ServiceInjectionPlanBinder.Binder
The binder builder for the service plan.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbind(String id, ServiceProvider<?> serviceProvider) Binds a single service provider to the injection point identified byInjectionPointInfoBlueprint.id().bindMany(String id, ServiceProvider<?>... serviceProviders) Binds a list of service providers to the injection point identified byInjectionPointInfoBlueprint.id().Represents a void / null bind, only applicable for an Optional injection point.voidcommit()Commits the bindings for this service provider.resolvedBind(String id, Class<?> serviceType) Represents injection points that cannot be bound at startup, and instead must rely on a deferred resolver based binding.
-
Method Details
-
bind
Binds a single service provider to the injection point identified byInjectionPointInfoBlueprint.id(). It is assumed that the caller of this is aware of the proper cardinality for each injection point.- Parameters:
id- the injection point identityserviceProvider- the service provider to bind to this identity.- Returns:
- the binder builder
-
bindMany
Binds a list of service providers to the injection point identified byInjectionPointInfoBlueprint.id(). It is assumed that the caller of this is aware of the proper cardinality for each injection point.- Parameters:
id- the injection point identityserviceProviders- 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
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 identityserviceType- the service type needing to be resolved- Returns:
- the binder builder
-
commit
void commit()Commits the bindings for this service provider.
-