Package org.atlanmod.commons.service
Interface ServiceContext
-
- All Known Implementing Classes:
OSGiContext,ServiceLoaderContext
@ParametersAreNonnullByDefault public interface ServiceContextA context able to retrieve registered services.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Stream<ServiceDefinition<T>>getServices(Class<T> type)Retrieves all registered services of the specifiedtype.
-
-
-
Method Detail
-
getServices
@Nonnull <T> Stream<ServiceDefinition<T>> getServices(Class<T> type)
Retrieves all registered services of the specifiedtype.- Parameters:
type- the type of services to look for- Returns:
- a parallel stream of all registered services of the specified
type
-
-