Packageorg.spicefactory.parsley.core.events
Classpublic class ContextEvent
InheritanceContextEvent Inheritance flash.events.Event

Event that fires when a Context changes its internal state.



Public Methods
 MethodDefined By
  
ContextEvent(type:String)
Creates a new event instance.
ContextEvent
Public Constants
 ConstantDefined By
  CONFIGURED : String = configured
[static] Constant for the type of event fired when a Context instance was configured.
ContextEvent
  DESTROYED : String = destroyed
[static] Constant for the type of event fired when a Context instance was destroyed.
ContextEvent
  INITIALIZED : String = initialized
[static] Constant for the type of event fired when a Context instance was initialized.
ContextEvent
Constructor Detail
ContextEvent()Constructor
public function ContextEvent(type:String)

Creates a new event instance.

Parameters
type:String — the type of this event
Constant Detail
CONFIGUREDConstant
public static const CONFIGURED:String = configured

Constant for the type of event fired when a Context instance was configured. After this event has fired all configuration has been processed and all ObjectDefinition instances have been frozen and cannot be modified anymore. Context.getObject and other methods of the Context can now be called. But application code should be careful to fetch objects from the container before the INITIALIZED event because it could alter the sequence of asynchronously initializing objects. Nevertheless it is legal to fetch objects at this point because the asynchronously initializing objects might have dependencies themselves.

DESTROYEDConstant 
public static const DESTROYED:String = destroyed

Constant for the type of event fired when a Context instance was destroyed.

INITIALIZEDConstant 
public static const INITIALIZED:String = initialized

Constant for the type of event fired when a Context instance was initialized. A Context is fully initialized if all asynchronous initializers for non-lazy singletons (if any) have completed and the parent Context (if set) is fully initialized too.