Package | org.spicefactory.parsley.flex.tag.builder |
Class | public class RuntimeConfigTag |
Inheritance | RuntimeConfigTag Object |
Implements | BootstrapConfigProcessor, ConfigurationProcessor |
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
Property | Defined By | ||
---|---|---|---|
instances : Array
The configuration artifacts to add to the Context. | RuntimeConfigTag |
Method | Defined By | ||
---|---|---|---|
processConfig(config:BootstrapConfig):void
Processes the specified configuration instance, adding configuration artifacts, declaring custom scopes
or initializing extensions. | RuntimeConfigTag | ||
processConfiguration(registry:ObjectDefinitionRegistry):void | RuntimeConfigTag |
instances | property |
public var instances:Array
The configuration artifacts to add to the Context.
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 |