Module io.helidon.service.registry
Package io.helidon.service.registry
Interface ServiceRegistryManager
public interface ServiceRegistryManager
Manager is responsible for managing the state of a
ServiceRegistry.
Each manager instances owns a single service registry.
To use a singleton service across application, either pass it through parameters, or use
GlobalServiceRegistry.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceRegistryManagercreate()Create a new service registry manager with default configuration.static ServiceRegistryManagercreate(ServiceRegistryConfig config) Create a new service registry manager with custom configuration.registry()Get (or initialize and get) the service registry managed by this manager.voidshutdown()Shutdown the managed service registry.
-
Method Details
-
create
Create a new service registry manager with default configuration.- Returns:
- a new service registry manager
-
create
Create a new service registry manager with custom configuration.- Parameters:
config- configuration of this registry manager- Returns:
- a new configured service registry manager
-
registry
ServiceRegistry registry()Get (or initialize and get) the service registry managed by this manager.- Returns:
- service registry ready to be used
-
shutdown
void shutdown()Shutdown the managed service registry.
-