public final class ServiceRegistry extends Object implements org.wildfly.common.context.Contextual<ServiceRegistry>
Some providers only support certain types of services and will ignore others. Some providers cannot support repeated attribute values, or may be restricted as to which attribute names are recognized, or may not support attributes at all. Such providers generally must evaluate a service URL and determine if it can correctly advertise it, ignoring the registration if the provider cannot.
| Modifier and Type | Method and Description |
|---|---|
static ServiceRegistry |
create(RegistryProvider registryProvider)
Create a new service registry instance.
|
static org.wildfly.common.context.ContextManager<ServiceRegistry> |
getContextManager()
Get the context manager.
|
org.wildfly.common.context.ContextManager<ServiceRegistry> |
getInstanceContextManager()
Get the instance context manager.
|
ServiceRegistration |
registerService(ServiceURL serviceURL)
Register a service URL.
|
ServiceRegistration |
registerServices(ServiceURL... serviceURLs)
Register a group of service URLs to be controlled with a single handle.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrun, runAction, runBiConsumer, runBiFunction, runBiPredicate, runCallable, runConsumer, runExBiConsumer, runExBiFunction, runExBiPredicate, runExceptionAction, runExConsumer, runExFunction, runExIntFunction, runExLongFunction, runExPredicate, runFunction, runIntFunction, runLongFunction, runPredicatepublic org.wildfly.common.context.ContextManager<ServiceRegistry> getInstanceContextManager()
getContextManager().getInstanceContextManager in interface org.wildfly.common.context.Contextual<ServiceRegistry>null)public static org.wildfly.common.context.ContextManager<ServiceRegistry> getContextManager()
null)public static ServiceRegistry create(RegistryProvider registryProvider)
registryProvider - the backing registry provider (must not be null)null)public ServiceRegistration registerService(ServiceURL serviceURL)
serviceURL - the service to register (must not be null)null)public ServiceRegistration registerServices(ServiceURL... serviceURLs)
serviceURLs - the services to register (must not be null or contain null elements)null)Copyright © 2017 JBoss by Red Hat. All rights reserved.