Package org.togglz.core.util
Class Services
- java.lang.Object
-
- org.togglz.core.util.Services
-
public class Services extends Object
Helper class to lookup SPI implementations using theServiceLoader
.- Author:
- Christian Kaltepoth
-
-
Constructor Summary
Constructors Constructor Description Services()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> Collection<E>
get(Class<? extends E> service)
Lookup implementations of the supplied SPI.static <E extends Weighted>
List<E>getSorted(Class<? extends E> service)
Lookup implementations of the supplied SPI.
-
-
-
Method Detail
-
get
public static <E> Collection<E> get(Class<? extends E> service)
Lookup implementations of the supplied SPI. Please note that the order in which the implementations will occur in the collection is not specified.
-
-