Package | org.spicefactory.parsley.xml |
Class | public class XmlConfig |
Inheritance | XmlConfig Object |
Example:
ContextBuilder
.newInstance()
.config(XmlConfig.forFile("config.xml"))
.build();
For details on XML configuration see 3.3 XML Configuration in the Parsley Manual.
Method | Defined By | ||
---|---|---|---|
forFile(file:String):ConfigurationProcessor [static]
Creates a processor for the specified XML configuration file. | XmlConfig | ||
forFiles(... files):ConfigurationProcessor [static]
Creates a processor for the specified XML configuration files. | XmlConfig | ||
forInstance(xml:XML):ConfigurationProcessor [static]
Creates a processor for the specified XML configuration instance. | XmlConfig |
forFile | () | method |
public static function forFile(file:String):ConfigurationProcessor
Creates a processor for the specified XML configuration file.
Parameters
file:String — the name of the file that contains the XML configuration
|
ConfigurationProcessor — a new configuration processor instance which can be added to a ContextBuilder
|
forFiles | () | method |
public static function forFiles(... files):ConfigurationProcessor
Creates a processor for the specified XML configuration files.
Parameters
... files — the names of the files that contain the XML configuration
|
ConfigurationProcessor — a new configuration processor instance which can be added to a ContextBuilder
|
forInstance | () | method |
public static function forInstance(xml:XML):ConfigurationProcessor
Creates a processor for the specified XML configuration instance.
Parameters
xml:XML — the name of the file that contains the XML configuration
|
ConfigurationProcessor — a new configuration processor instance which can be added to a ContextBuilder
|