RegistryProviderpublic final class MutableRegistryProvider extends Object implements RegistryProvider
EMPTY| Constructor | Description |
|---|---|
MutableRegistryProvider() |
Construct a new instance using an empty provider.
|
MutableRegistryProvider(RegistryProvider initialProvider) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
ServiceRegistration |
registerService(ServiceURL serviceURL) |
Register a service with this provider.
|
ServiceRegistration |
registerServices(ServiceURL... serviceURLs) |
Register multiple services with this provider at once.
|
void |
setRegistryProvider(RegistryProvider delegateProvider) |
Set the registry provider instance.
|
public MutableRegistryProvider(RegistryProvider initialProvider)
initialProvider - the initial provider to use (must not be null)public MutableRegistryProvider()
public ServiceRegistration registerService(ServiceURL serviceURL)
RegistryProviderregisterService in interface RegistryProviderserviceURL - the service to register (not null)null)public ServiceRegistration registerServices(ServiceURL... serviceURLs)
RegistryProvider
The default implementation calls RegistryProvider.registerService(ServiceURL) for each service in the array and
returns an aggregated handle.
registerServices in interface RegistryProviderserviceURLs - the services to register (not null, will not contain null elements)null)public void setRegistryProvider(RegistryProvider delegateProvider)
delegateProvider - the registry provider instance (must not be null)Copyright © 2019 JBoss by Red Hat. All rights reserved.