|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.framework.configuration.ConfigurationFactory
public class ConfigurationFactory
This is the factory for configurations.
The class to be used for the configuration can be set with the
System.property named Util.Configuration.class. If
this property is not set then the fallback class
XmlConfiguration
is used instead.
| Method Summary | |
|---|---|
static Configuration |
newInstance(java.lang.String source)
Delivers a new Configuration
object which is initialized from a named source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Configuration newInstance(java.lang.String source)
throws ConfigurationException
Configuration
object which is initialized from a named source. This source is usually a
file name but can be anything else, like a URL or a reference to a
database – depending on the underlying implementation.
The implementation can be specified in the system property
Util.Configuration.class. The content is expected to be a
fully qualified class name. This class has to implement the interface
Configuration.
The default implementation is
XmlConfiguration
which uses an XML file located on the classpath.
source - the source of the configuration
ConfigurationException - in case of an error. Especially
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||