Package | org.spicefactory.parsley.runtime.processor |
Class | public class RuntimeConfigurationProcessor |
Inheritance | RuntimeConfigurationProcessor Object |
Implements | ConfigurationProcessor |
Method | Defined 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 | ||
processConfiguration(registry:ObjectDefinitionRegistry):void
Processes all configuration artifacts and adds object definitions to the specified registry. | RuntimeConfigurationProcessor |
RuntimeConfigurationProcessor | () | Constructor |
public function RuntimeConfigurationProcessor(instances:Array = null)
Creates a new instance.
Parametersinstances:Array (default = null ) — the instances to add to the Context
|
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
|