A simple locator for SPI implementations.
-
Constructor Summary
Constructors
-
Method Summary
static <SERVICE> SERVICE
get(Class<SERVICE> serviceType,
SERVICE defaultValue)
static <SERVICE> List<SERVICE>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Services
private Services()
-
Method Details
-
get
public static <SERVICE> SERVICE get(Class<SERVICE> serviceType,
SERVICE defaultValue)
-
getAll
public static <SERVICE> List<SERVICE> getAll(Class<SERVICE> serviceType)