Package | org.spicefactory.parsley.core.events |
Class | public class ContextEvent |
Inheritance | ContextEvent flash.events.Event |
Method | Defined By | ||
---|---|---|---|
ContextEvent(type:String)
Creates a new event instance. | ContextEvent |
Constant | Defined 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 |
ContextEvent | () | Constructor |
public function ContextEvent(type:String)
Creates a new event instance.
Parameterstype:String — the type of this event
|
CONFIGURED | Constant |
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.
DESTROYED | Constant |
public static const DESTROYED:String = destroyed
Constant for the type of event fired when a Context instance was destroyed.
INITIALIZED | Constant |
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.