Packageorg.spicefactory.parsley.xml.processor
Classpublic class XmlConfigurationProcessor
InheritanceXmlConfigurationProcessor Inheritance flash.events.EventDispatcher
Implements AsyncConfigurationProcessor

ObjectDefinitionBuilder implementation that processes XML configuration files. This builder operates asynchronously.



Public Properties
 PropertyDefined By
  loader : XmlConfigurationLoader
[read-only] The loader that loads the XML configuration files.
XmlConfigurationProcessor
Public Methods
 MethodDefined By
  
XmlConfigurationProcessor(files:Array, expressionContext:ExpressionContext = null, loader:XmlConfigurationLoader = null)
Creates a new instance.
XmlConfigurationProcessor
  
addXml(xml:XML):void
Adds an XML reference containing Parsley XML configuration to be processed alongside the loaded files.
XmlConfigurationProcessor
  
cancel():void
Invoked when the configuration process gets cancelled, usually due to an associated Context having been destroyed.
XmlConfigurationProcessor
  
Processes all configuration artifacts and adds object definitions to the specified registry.
XmlConfigurationProcessor
Property Detail
loaderproperty
loader:XmlConfigurationLoader  [read-only]

The loader that loads the XML configuration files.


Implementation
    public function get loader():XmlConfigurationLoader
Constructor Detail
XmlConfigurationProcessor()Constructor
public function XmlConfigurationProcessor(files:Array, expressionContext:ExpressionContext = null, loader:XmlConfigurationLoader = null)

Creates a new instance.

Parameters
files:Array — the names of the XML configuration files
 
expressionContext:ExpressionContext (default = null)
 
loader:XmlConfigurationLoader (default = null)
Method Detail
addXml()method
public function addXml(xml:XML):void

Adds an XML reference containing Parsley XML configuration to be processed alongside the loaded files.

Parameters

xml:XML — an XML reference containing Parsley XML configuration

cancel()method 
public function cancel():void

Invoked when the configuration process gets cancelled, usually due to an associated Context having been destroyed.

processConfiguration()method 
public function processConfiguration(registry:ObjectDefinitionRegistry):void

Processes all configuration artifacts and adds object definitions to the specified registry.

Parameters

registry:ObjectDefinitionRegistry — the registry to process