public final class Discovery extends Object implements org.wildfly.common.context.Contextual<Discovery>
| Modifier and Type | Method and Description |
|---|---|
static Discovery |
create(DiscoveryProvider... providers)
Create a discovery object with the given providers.
|
static Discovery |
create(DiscoveryProvider provider)
Create a discovery object with the given single provider.
|
ServicesQueue |
discover(ServiceType serviceType,
FilterSpec filterSpec)
Perform a service discovery.
|
static org.wildfly.common.context.ContextManager<Discovery> |
getContextManager()
Get the context manager.
|
org.wildfly.common.context.ContextManager<Discovery> |
getInstanceContextManager()
Get the instance context manager.
|
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<Discovery> getInstanceContextManager()
getContextManager().getInstanceContextManager in interface org.wildfly.common.context.Contextual<Discovery>null)public static org.wildfly.common.context.ContextManager<Discovery> getContextManager()
null)public ServicesQueue discover(ServiceType serviceType, FilterSpec filterSpec)
AutoCloseable in order to
facilitate simple usage in a try-with-resources block.serviceType - the abstract or concrete type of service to search forfilterSpec - the service filter specificationpublic static Discovery create(DiscoveryProvider... providers)
providers argument and its array
elements may not be null.providers - the discovery providers (must not be null)public static Discovery create(DiscoveryProvider provider)
provider argument may not be null.provider - the discovery provider (must not be null)Copyright © 2017 JBoss by Red Hat. All rights reserved.