Interface ServiceContext

  • All Known Implementing Classes:
    OSGiContext, ServiceLoaderContext

    @ParametersAreNonnullByDefault
    public interface ServiceContext
    A context able to retrieve registered services.
    • Method Detail

      • getServices

        @Nonnull
        <T> Stream<ServiceDefinition<T>> getServices​(Class<T> type)
        Retrieves all registered services of the specified type.
        Parameters:
        type - the type of services to look for
        Returns:
        a parallel stream of all registered services of the specified type