Packageorg.spicefactory.parsley.runtime.processor
Classpublic class RuntimeConfigurationProcessor
InheritanceRuntimeConfigurationProcessor Inheritance Object
Implements ConfigurationProcessor

ConfigurationProcessor implementation that adds existing instances or simple class references to the Context.



Public Methods
 MethodDefined By
  
RuntimeConfigurationProcessor(instances:Array = null)
Creates a new instance.
RuntimeConfigurationProcessor
  
addClass(type:Class, id:String = null, singleton:Boolean = true, lazy:Boolean = false, order:int):void
Adds the specified type to the Context.
RuntimeConfigurationProcessor
  
addInstance(instance:Object, id:String = null):void
Adds the specified instance to the Context.
RuntimeConfigurationProcessor
  
Processes all configuration artifacts and adds object definitions to the specified registry.
RuntimeConfigurationProcessor
Constructor Detail
RuntimeConfigurationProcessor()Constructor
public function RuntimeConfigurationProcessor(instances:Array = null)

Creates a new instance.

Parameters
instances:Array (default = null) — the instances to add to the Context
Method Detail
addClass()method
public function addClass(type:Class, id:String = null, singleton:Boolean = true, lazy:Boolean = false, order:int):void

Adds the specified type to the Context. Specifying a type instead of an actual instance allows parameters like lazy or singleton to be set.

Parameters

type:Class — the Class to add to the Context
 
id:String (default = null) — the optional id to register the instance with
 
singleton:Boolean (default = true) — whether the Context should only create one instance of that type
 
lazy:Boolean (default = false) — whether the object should be lazily initialized
 
order:int (default = NaN) — the intialization order for the specified Class

addInstance()method 
public function addInstance(instance:Object, id:String = null):void

Adds the specified instance to the Context.

Parameters

instance:Object — the instance to add to the Context
 
id:String (default = null) — the optional id to register the instance with

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