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 Details

    • create

      static ServiceRegistryManager 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.