public final class AggregateRegistryProvider extends Object implements RegistryProvider
EMPTY| Constructor and Description |
|---|
AggregateRegistryProvider(RegistryProvider[] delegates)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceRegistration |
registerService(ServiceURL serviceURL)
Register a service with this provider.
|
ServiceRegistration |
registerServices(ServiceURL... serviceURLs)
Register multiple services with this provider at once.
|
public AggregateRegistryProvider(RegistryProvider[] delegates)
delegates - the array of delegates (must not be null)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)Copyright © 2017 JBoss by Red Hat. All rights reserved.