T
- public class ConfiguringSingletonServiceLoader<T> extends SingletonServiceLoader<T>
Constructor and Description |
---|
ConfiguringSingletonServiceLoader(Class<? extends T> c,
boolean failIfNotFound) |
ConfiguringSingletonServiceLoader(Class<? extends T> c,
boolean failIfNotFound,
T defaultImplementation) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
loadAndConfigure(Class<? extends T> t,
boolean required) |
static <T> T |
loadAndConfigure(Class<? extends T> t,
boolean required,
String identification) |
static <T> T |
loadAndConfigure(Class<? extends T> t,
boolean required,
T defaultImplementation) |
static <T> T |
loadAndConfigure(Class<? extends T> t,
boolean required,
T defaultImplementation,
String identification) |
protected void |
processImplementation(T implementation)
Classes extending this class may overwrite the default (empty)
implementation.
|
get, get, get
public ConfiguringSingletonServiceLoader(Class<? extends T> c, boolean failIfNotFound)
public static <T> T loadAndConfigure(Class<? extends T> t, boolean required)
public static <T> T loadAndConfigure(Class<? extends T> t, boolean required, T defaultImplementation)
public static <T> T loadAndConfigure(Class<? extends T> t, boolean required, String identification)
public static <T> T loadAndConfigure(Class<? extends T> t, boolean required, T defaultImplementation, String identification)
protected void processImplementation(T implementation) throws ConfigurationException
SingletonServiceLoader
processImplementation
in class SingletonServiceLoader<T>
implementation
- the loaded implementation
ConfigurationException
- if the processing failsCopyright © 2012-2015 52north.org. All Rights Reserved.