|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.eos.util.SupplierFactory<T>
public final class SupplierFactory<T>
| Constructor Summary | |
|---|---|
SupplierFactory()
|
|
| Method Summary | ||
|---|---|---|
static
|
newSupplier(Class<? extends ConfigurableSupplier<T>> clazz,
Configuration config)
Creates a new instance of the ConfigurableSupplier class. |
|
static
|
newSupplier(Class<? extends Supplier<T>> clazz)
Creates a new instance of the Supplier class. |
|
static
|
newSupplier(String configName,
Configuration config)
Creates a new instance of the Supplier class. |
|
static
|
newSupplier(String configName,
Configuration config,
String defaultClazzName)
Creates a new instance of the Supplier class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SupplierFactory()
| Method Detail |
|---|
public static final <T> Supplier<T> newSupplier(Class<? extends Supplier<T>> clazz)
Supplier class. The
supplier must support a default Constructor.
T - the type of the supplierclazz - the class instance of the supplier
supplier
public static final <T> ConfigurableSupplier<T> newSupplier(Class<? extends ConfigurableSupplier<T>> clazz,
Configuration config)
ConfigurableSupplier class.
The supplier must support a default Constructor.
T - the type of the supplierclazz - the class instance of the supplier
supplier
public static final <T> Supplier<T> newSupplier(String configName,
Configuration config)
Supplier class. The
supplier must support a default Constructor.
T - the type of the supplierconfigName - the name of the key that value in config
is the name of a supplier classconfig - the configuration containing the class name
supplier
public static final <T> Supplier<T> newSupplier(String configName,
Configuration config,
String defaultClazzName)
Supplier class. The
supplier must support a default Constructor.
T - the type of the supplierconfigName - the name of the key that value in config
is the name of a supplier classconfig - the configuration containing the class namedefaultClazzName - the default supplier class name
supplier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||