Packageorg.spicefactory.parsley.xml
Classpublic class XmlConfig
InheritanceXmlConfig Inheritance Object

Static entry point methods for creating XML configuration processors to be added to a ContextBuilder.

Example:

                  ContextBuilder
     .newInstance()
     .config(XmlConfig.forFile("config.xml"))
     .build();
               

For details on XML configuration see 3.3 XML Configuration in the Parsley Manual.



Public Methods
 MethodDefined By
  
[static] Creates a processor for the specified XML configuration file.
XmlConfig
  
[static] Creates a processor for the specified XML configuration files.
XmlConfig
  
[static] Creates a processor for the specified XML configuration instance.
XmlConfig
Method Detail
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

Returns
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

Returns
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

Returns
ConfigurationProcessor — a new configuration processor instance which can be added to a ContextBuilder