Package org.wildfly.discovery.spi
Interface RegistryProvider
- All Known Implementing Classes:
AggregateRegistryProvider,LocalRegistryAndDiscoveryProvider,MutableRegistryProvider
public interface RegistryProvider
A provider for service registration.
- Author:
- David M. Lloyd
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegistryProviderA registry provider which ignores all registrations. -
Method Summary
Modifier and TypeMethodDescriptionregisterService(ServiceURL serviceURL) Register a service with this provider.default ServiceRegistrationregisterServices(ServiceURL... serviceURLs) Register multiple services with this provider at once.
-
Field Details
-
EMPTY
A registry provider which ignores all registrations.
-
-
Method Details
-
registerService
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 (notnull)- Returns:
- the service registration handle (must not be
null)
-
registerServices
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 (notnull, will not containnullelements)- Returns:
- the service registration handle (must not be
null)
-