Interface RegistryProvider

All Known Implementing Classes:
AggregateRegistryProvider, LocalRegistryAndDiscoveryProvider, MutableRegistryProvider

public interface RegistryProvider
A provider for service registration.
Author:
David M. Lloyd
  • Field Details

    • EMPTY

      static final RegistryProvider EMPTY
      A registry provider which ignores all registrations.
  • Method Details

    • registerService

      ServiceRegistration registerService(ServiceURL serviceURL)
      Register a service with this provider. Service URLs which are unsupported must be ignored; in this case, the empty registration handle must be returned.
      Parameters:
      serviceURL - the service to register (not null)
      Returns:
      the service registration handle (must not be null)
    • registerServices

      default ServiceRegistration registerServices(ServiceURL... serviceURLs)
      Register multiple services with this provider at once. Service URLs which are unsupported must be ignored. If none of the service URLs are supported, then the empty registration handle must be returned.

      The default implementation calls registerService(ServiceURL) for each service in the array and returns an aggregated handle.

      Parameters:
      serviceURLs - the services to register (not null, will not contain null elements)
      Returns:
      the service registration handle (must not be null)