public class ServiceLoaderHelper extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
ServiceLoaderHelper() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
loadImplementation(Class<T> clazz)
Return an implementation of a class, loaded by the ServiceLoader
|
static <T> T |
loadImplementation(Class<T> clazz,
String datasourceIdentificator)
Return an implementation of a class, loaded by the ServiceLoader
|
public static <T> T loadImplementation(Class<T> clazz) throws NoImplementationFoundException
clazz
- The class to loadNoImplementationFoundException
public static <T> T loadImplementation(Class<T> clazz, String datasourceIdentificator) throws NoImplementationFoundException
clazz
- The class to loaddatasourceIdentificator
- The identificator for the loaded classNoImplementationFoundException
Copyright © 2012-2015 52north.org. All Rights Reserved.