@ParametersAreNonnullByDefault public class ServiceLoaderContext extends Object implements ServiceContext
ServiceContext able to retrieve registered services from a ServiceLoader.| Constructor and Description |
|---|
ServiceLoaderContext() |
| Modifier and Type | Method and Description |
|---|---|
<S> Stream<ServiceDefinition<S>> |
getServices(Class<S> type)
Retrieves all registered services of the specified
type. |
@Nonnull public <S> Stream<ServiceDefinition<S>> getServices(Class<S> type)
ServiceContexttype.getServices in interface ServiceContexttype - the type of services to look fortypeCopyright © 2017–2019 Atlanmod. All rights reserved.