|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.utils.SettingsFactory<T>
public class SettingsFactory<T>
Generic class for creating class instances from class names given in settings.
Constructor Summary | |
---|---|
SettingsFactory()
|
Method Summary | ||
---|---|---|
static
|
getInstance(java.lang.String settingsField,
java.lang.Object... args)
Creates a new class of the class given in the settings field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SettingsFactory()
Method Detail |
---|
public static <T> T getInstance(java.lang.String settingsField, java.lang.Object... args)
settingsField
- A field in the Settings class.args
- The arguments that will be passed to the getInstance method
or the constructor. These will also be used to determine which
getInstance method or constructor to find.
ArgumentNotValid
- if settingsField is null or the invoked method
or constructor threw an exception.
IOFailure
- if there are unrecoverable errors reflecting upon the
class.
PermissionDenied
- if the class or methods cannot be accessed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |