Packageorg.spicefactory.parsley.core.context.impl
Classpublic class InitializerSequence
InheritanceInitializerSequence Inheritance Object

Responsible for processing all non-lazy singletons that need to be instantiated upon Context creation.



Public Properties
 PropertyDefined By
  complete : Boolean
[read-only] Indicates whether all definitions of this sequence have completed their initialization.
InitializerSequence
Public Methods
 MethodDefined By
  
Creates a new instance.
InitializerSequence
  
Adds a definition to this sequence.
InitializerSequence
  
cancel():void
Cancels the initialization sequence.
InitializerSequence
  
handleAsyncInit(object:ManagedObject, isQueued:Boolean):void
Adds a new instance to be watched by this sequence for completion of its asynchronous initialization.
InitializerSequence
  
start():void
Starts processing the definitons that were added to this sequence.
InitializerSequence
Property Detail
completeproperty
complete:Boolean  [read-only]

Indicates whether all definitions of this sequence have completed their initialization.


Implementation
    public function get complete():Boolean
Constructor Detail
InitializerSequence()Constructor
public function InitializerSequence(context:DefaultContext)

Creates a new instance.

Parameters
context:DefaultContext — the associated Context
Method Detail
addDefinition()method
public function addDefinition(def:ObjectDefinition):void

Adds a definition to this sequence.

Parameters

def:ObjectDefinition — the definition to add to this sequence

cancel()method 
public function cancel():void

Cancels the initialization sequence.

handleAsyncInit()method 
public function handleAsyncInit(object:ManagedObject, isQueued:Boolean):void

Adds a new instance to be watched by this sequence for completion of its asynchronous initialization.

Parameters

object:ManagedObject — the object to watch
 
isQueued:Boolean

start()method 
public function start():void

Starts processing the definitons that were added to this sequence.