Packageorg.spicefactory.parsley.flex.tag.builder
Classpublic class RuntimeConfigTag
InheritanceRuntimeConfigTag Inheritance Object
Implements BootstrapConfigProcessor, ConfigurationProcessor

MXML tag for adding runtime instance to the configuration of a Context.

Example:

                  <parsley:ContextBuilder>
     <parsley:FlexConfig type="{BookStoreConfig}"/>
     <parsley:RuntimeConfig instances="{[instance1, instance2]}"/>
 </parsley:ContextBuilder>
               

or with ids:

                  <parsley:ContextBuilder>
     <parsley:FlexConfig type="{BookStoreConfig}"/>
     <parsley:RuntimeConfig ">
         <parsley:Instance instance="{instance1}" id="id1"/>
         <parsley:Instance instance="{instance2}" id="id2"/>
     </parsley:RuntimeConfig ">
 </parsley:ContextBuilder>
               

Default MXML Propertyinstances



Public Properties
 PropertyDefined By
  instances : Array
The configuration artifacts to add to the Context.
RuntimeConfigTag
Public Methods
 MethodDefined By
  
Processes the specified configuration instance, adding configuration artifacts, declaring custom scopes or initializing extensions.
RuntimeConfigTag
  
RuntimeConfigTag
Property Detail
instancesproperty
public var instances:Array

The configuration artifacts to add to the Context.

Method Detail
processConfig()method
public function processConfig(config:BootstrapConfig):void

Processes the specified configuration instance, adding configuration artifacts, declaring custom scopes or initializing extensions.

To initialize a global extension like a custom configuration tag or a replacement or decorator for one of the IOC Kernel services, the corresponding hooks like BootstrapDefaults.config should be used and the config parameter can simply be ignored.

Parameters

config:BootstrapConfig — the configuration that will be used to create the Context

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

Parameters

registry:ObjectDefinitionRegistry