| Package | vegas.ioc |
| Class | public class ObjectFactoryLoader |
| Inheritance | ObjectFactoryLoader Task Object |
| Subclasses | ApplicationLoader |
| Property | Defined By | ||
|---|---|---|---|
| context : String
The default context file uri value. | ObjectFactoryLoader | ||
| factory : ObjectFactory
The IoC factory reference. | ObjectFactoryLoader | ||
![]() | finishIt : Signaler
This signal emit when the notifyFinished method is invoked. | Task | |
| flashVars : FlashVars
The flashVars reference of the application. | ObjectFactoryLoader | ||
![]() | logger : Logger
Determinates the internal Logger reference of this Loggable object. | Task | |
| path : String
The default path of the external context file. | ObjectFactoryLoader | ||
![]() | phase : String [read-only]
The current phase of the action. | Task | |
| resourceInfo : ObjectResourceInfo [read-only]
Returns the ObjectResourceInfo object corresponding to the current resource being loaded. | ObjectFactoryLoader | ||
| root : DisplayObjectContainer
The root reference of the application. | ObjectFactoryLoader | ||
![]() | running : Boolean [read-only]
Indicates true if the process is in progress. | Task | |
| stage : Stage
The Stage reference of the application. | ObjectFactoryLoader | ||
![]() | startIt : Signaler
This signal emit when the notifyStarted method is invoked. | Task | |
| verbose : Boolean
Switch the verbose mode of this loader. | ObjectFactoryLoader | ||
| Property | Defined By | ||
|---|---|---|---|
| objects : Array
The array representation of the object definitions to insert in the IoC factory container. | ObjectFactoryLoader | ||
| sequencer : Chain
The internal sequencer of the factory loader. | ObjectFactoryLoader | ||
| Method | Defined By | ||
|---|---|---|---|
ObjectFactoryLoader(context:String = null, path:String, factory:ObjectFactory = null)
Creates a new ObjectFactoryLoader instance. | ObjectFactoryLoader | ||
clear():void
Clear all the resources in the loader and reset it. | ObjectFactoryLoader | ||
![]() | clone():*
Returns a shallow copy of this object. | Task | |
create():void
Creates the objects. | ObjectFactoryLoader | ||
![]() | isLocked():Boolean
Returns true if the object is locked. | Task | |
![]() | lock():void
Locks the object. | Task | |
![]() | notifyFinished():void
Notify an ActionEvent when the process is finished. | Task | |
![]() | notifyStarted():void
Notify an ActionEvent when the process is started. | Task | |
registerFactory():void
Register the current factory reference of this loader. | ObjectFactoryLoader | ||
run(... arguments):void [override]
Run the process. | ObjectFactoryLoader | ||
![]() | unlock():void
Unlocks the display. | Task | |
unregisterFactory():void
Unregister the current factory referenceof this loader. | ObjectFactoryLoader | ||
| Method | Defined By | ||
|---|---|---|---|
addResource(resource:ObjectResource):Boolean
This method is the strategy to insert a new ObjectResource in the sequencer. | ObjectFactoryLoader | ||
Invoked when the current task in the sequencer is changed. | ObjectFactoryLoader | ||
Invoked when the factory is complete. | ObjectFactoryLoader | ||
![]() | setRunning(b:Boolean):void
Changes the running property value. | Task | |
| context | property |
public var context:StringThe default context file uri value.
| factory | property |
factory:ObjectFactoryThe IoC factory reference.
public function get factory():ObjectFactory public function set factory(value:ObjectFactory):void| flashVars | property |
flashVars:FlashVarsThe flashVars reference of the application. This property is optional and can be target in the IoC factory with the "ref" attribute with the value "#flashVars".
public function get flashVars():FlashVars public function set flashVars(value:FlashVars):void| objects | property |
protected var objects:ArrayThe array representation of the object definitions to insert in the IoC factory container.
| path | property |
path:StringThe default path of the external context file.
public function get path():String public function set path(value:String):void| resourceInfo | property |
resourceInfo:ObjectResourceInfo [read-only] Returns the ObjectResourceInfo object corresponding to the current resource being loaded.
public function get resourceInfo():ObjectResourceInfo| root | property |
root:DisplayObjectContainerThe root reference of the application. This property is optional and can be target in the IoC factory with the "ref" attribute with the value "#root".
public function get root():DisplayObjectContainer public function set root(value:DisplayObjectContainer):void| sequencer | property |
protected var sequencer:ChainThe internal sequencer of the factory loader. (Use it to load multiple context files).
| stage | property |
stage:StageThe Stage reference of the application. This property is optional and can be target in the IoC factory with the "ref" attribute with the value "#stage".
public function get stage():Stage public function set stage(value:Stage):void| verbose | property |
public var verbose:BooleanSwitch the verbose mode of this loader.
| ObjectFactoryLoader | () | Constructor |
public function ObjectFactoryLoader(context:String = null, path:String, factory:ObjectFactory = null)Creates a new ObjectFactoryLoader instance.
Parameterscontext:String (default = null) — The uri of the context external eden file (default "application.eden").
| |
path:String — The optional path of the external context file (default "").
| |
factory:ObjectFactory (default = null) — The ObjectFactory reference of this loader.
|
| addResource | () | method |
protected function addResource(resource:ObjectResource):BooleanThis method is the strategy to insert a new ObjectResource in the sequencer. You must defines and overrides this method in your concrete ObjectFactoryLoader class.
Parameters
resource:ObjectResource |
Boolean |
| change | () | method |
protected function change(action:Action):voidInvoked when the current task in the sequencer is changed.
Parameters
action:Action |
| clear | () | method |
public function clear():voidClear all the resources in the loader and reset it.
| complete | () | method |
protected function complete(action:Action = null):voidInvoked when the factory is complete.
Parameters
action:Action (default = null) |
| create | () | method |
public function create():voidCreates the objects.
| registerFactory | () | method |
public function registerFactory():voidRegister the current factory reference of this loader.
| run | () | method |
override public function run(... arguments):voidRun the process.
Parameters
... arguments |
| unregisterFactory | () | method |
public function unregisterFactory():voidUnregister the current factory referenceof this loader.