|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tomgibara.pronto.config.ConfigFactory
public abstract class ConfigFactory
Instances of this class are responsible for creating Config
objects with which configuration settings can be exposed through Java
interfaces.
Only one instance of a ConfigFactory is available through the
getInstance() method. The default implementation returned by
this static method can be changed by assigning the system property
com.tomgibara.pronto.config.factory the name of a class which
extends this abstract base class.
| Constructor Summary | |
|---|---|
ConfigFactory()
|
|
| Method Summary | |
|---|---|
static ConfigFactory |
getInstance()
Should be called to obtain a ConfigFactory instance. |
abstract Config |
newConfig(ConfigSource source,
java.lang.ClassLoader classLoader)
Constructs a new config. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigFactory()
| Method Detail |
|---|
public static ConfigFactory getInstance()
throws com.tomgibara.pronto.core.ProntoException
ConfigFactory instance. This
method is the single entry-point to configuration functionality in the
pronto framework.
com.tomgibara.pronto.core.ProntoException - if the factory instance could not be created
public abstract Config newConfig(ConfigSource source,
java.lang.ClassLoader classLoader)
throws ProntoConfigException
source - the source of configuration properties, not nullclassLoader - the class loader for creating interface implementations and
value objects, may be null
ProntoConfigException - if the properties could not be accessed and the policy is to
throw exceptions
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||