public final class ServiceLoaderUtils extends Object
Collection of utilities to ease working with ServiceLoader
.
Modifier and Type | Method and Description |
---|---|
static <S> List<S> |
getProvidersAsList(Class<S> spi)
Loads all available providers for the passed SPI (Service Provider
Interface) and returns them as an
ArrayList . |
public static <S> List<S> getProvidersAsList(Class<S> spi)
Loads all available providers for the passed SPI (Service Provider
Interface) and returns them as an ArrayList
.
spi
- The service provider interface used to load existing
implementations.Copyright © 2013-2015 Dandelion Project. All Rights Reserved.