Packagepotomac.inject
Classpublic class InjectionEvent
InheritanceInjectionEvent Inheritance flash.events.Event

An event sent in response to an injection request.



Public Properties
 PropertyDefined By
  className : String
[read-only] The class name (or interface name) of the injection binding.
InjectionEvent
  extension : Extension
[read-only] The extension instance used to create this instance (only populated when Injector#getInstanceOfExtension is called).
InjectionEvent
  instance : Object
[read-only] The instance just created and/or injected into.
InjectionEvent
  named : String
[read-only] The named attribute of the extension binding.
InjectionEvent
Public Methods
 MethodDefined By
  
InjectionEvent(type:String, className:String, named:String, extension:Extension, instance:Object)
Callers should not create InjectionEvents.
InjectionEvent
  
clone():Event
[override]
InjectionEvent
Public Constants
 ConstantDefined By
  INJECTINTO_COMPLETE : String = injectIntoComplete
[static] The InjectionEvent.INJECTINTO_COMPLETE constant defines the value of the type property of the event object for a injectIntoComplete event.
InjectionEvent
  INSTANCE_READY : String = instanceReady
[static] The InjectionEvent.INSTANCE_READY constant defines the value of the type property of the event object for a instanceReady event.
InjectionEvent
  POST_INJECTION : String = postInjection
[static] The InjectionEvent.POST_INJECTION constant defines the value of the type property of the event object for a postInjection event.
InjectionEvent
Property Detail
classNameproperty
className:String  [read-only]

The class name (or interface name) of the injection binding.


Implementation
    public function get className():String
extensionproperty 
extension:Extension  [read-only]

The extension instance used to create this instance (only populated when Injector#getInstanceOfExtension is called).


Implementation
    public function get extension():Extension
instanceproperty 
instance:Object  [read-only]

The instance just created and/or injected into.


Implementation
    public function get instance():Object
namedproperty 
named:String  [read-only]

The named attribute of the extension binding.


Implementation
    public function get named():String
Constructor Detail
InjectionEvent()Constructor
public function InjectionEvent(type:String, className:String, named:String, extension:Extension, instance:Object)

Callers should not create InjectionEvents.

Parameters
type:String
 
className:String
 
named:String
 
extension:Extension
 
instance:Object
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
INJECTINTO_COMPLETEConstant
public static const INJECTINTO_COMPLETE:String = injectIntoComplete

The InjectionEvent.INJECTINTO_COMPLETE constant defines the value of the type property of the event object for a injectIntoComplete event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
instanceThe object whose injections were satisfied.

INSTANCE_READYConstant 
public static const INSTANCE_READY:String = instanceReady

The InjectionEvent.INSTANCE_READY constant defines the value of the type property of the event object for a instanceReady event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
classNameThe className attribute of the injection binding.
namedThe name attribute of the injection binding.
extensionThe Extension instance from which this instance (only populated when Injector#getInstanceOfExtension is called).
instanceThe object instance that was just created.

POST_INJECTIONConstant 
public static const POST_INJECTION:String = postInjection

The InjectionEvent.POST_INJECTION constant defines the value of the type property of the event object for a postInjection event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
classNamenull
namednull
extensionnull
instanceThe object instance that was just injected into.