Packageorg.spicefactory.parsley.xml
Classpublic class XmlContextBuilder
InheritanceXmlContextBuilder Inheritance Object

Static entry point methods for building a Context from XML configuration files.

For details see 3.3 XML Configuration in the Parsley Manual.



Public Methods
 MethodDefined By
  
build(filename:String, viewRoot:DisplayObject = null, parent:Context = null, domain:ApplicationDomain = null, expressionContext:ExpressionContext = null):Context
[static] Builds a Context from the specified XML configuration file.
XmlContextBuilder
  
buildAll(filenames:Array, viewRoot:DisplayObject = null, parent:Context = null, domain:ApplicationDomain = null, expressionContext:ExpressionContext = null):Context
Deprecated: Please Use ContextBuilder DSL
[static]
XmlContextBuilder
  
merge(filename:String, builder:CompositeContextBuilder, expressionContext:ExpressionContext = null):void
Deprecated: Please Use ContextBuilder DSL
[static]
XmlContextBuilder
  
mergeAll(filenames:Array, builder:CompositeContextBuilder, expressionContext:ExpressionContext = null):void
Deprecated: Please Use ContextBuilder DSL
[static]
XmlContextBuilder
Method Detail
build()method
public static function build(filename:String, viewRoot:DisplayObject = null, parent:Context = null, domain:ApplicationDomain = null, expressionContext:ExpressionContext = null):Context

Builds a Context from the specified XML configuration file. The returned Context instance may not be fully initialized if it requires asynchronous operations. You can check its state with its configured and initialized properties.

Parameters

filename:String — the name of the file that contains the XML configuration
 
viewRoot:DisplayObject (default = null) — the initial view root for dynamically wiring view objects
 
parent:Context (default = null) — use ContextBuilder DSL when specifying custom bootstrap settings
 
domain:ApplicationDomain (default = null) — use ContextBuilder DSL when specifying custom bootstrap settings
 
expressionContext:ExpressionContext (default = null) — use ContextBuilder DSL when specifying custom bootstrap settings

Returns
Context — a new Context instance, possibly not fully initialized yet
buildAll()method 
public static function buildAll(filenames:Array, viewRoot:DisplayObject = null, parent:Context = null, domain:ApplicationDomain = null, expressionContext:ExpressionContext = null):Context
Deprecated: Please Use ContextBuilder DSL

Parameters

filenames:Array
 
viewRoot:DisplayObject (default = null)
 
parent:Context (default = null)
 
domain:ApplicationDomain (default = null)
 
expressionContext:ExpressionContext (default = null)

Returns
Context
merge()method 
public static function merge(filename:String, builder:CompositeContextBuilder, expressionContext:ExpressionContext = null):void
Deprecated: Please Use ContextBuilder DSL

Parameters

filename:String
 
builder:CompositeContextBuilder
 
expressionContext:ExpressionContext (default = null)

mergeAll()method 
public static function mergeAll(filenames:Array, builder:CompositeContextBuilder, expressionContext:ExpressionContext = null):void
Deprecated: Please Use ContextBuilder DSL

Parameters

filenames:Array
 
builder:CompositeContextBuilder
 
expressionContext:ExpressionContext (default = null)