Module io.helidon.service.registry
Package io.helidon.service.registry
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
The binder builder for the service plan. -
Method Summary
Modifier and TypeMethodDescriptionvoid
interceptors
(ServiceInfo... descriptors) Bind all discovered interceptors.service
(ServiceInfo descriptor) Bind an injection plan to a service provider instance.
-
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
Bind all discovered interceptors.- Parameters:
descriptors
- interceptor services
-