Packagepotomac.inject
Classpublic dynamic class InjectionRequest
InheritanceInjectionRequest Inheritance flash.events.EventDispatcher

An injection request represent the asynchronous process necessary for the creation and injection of objects in the Potomac bundle system.

When the request is complete, one of either InjectionEvent.INSTANCE_READY or InjectionEvent.INJECTINTO_COMPLETE will be dispatched appropriate to the request.



Public Methods
 MethodDefined By
  
InjectionRequest(injector:Injector, getInstanceWorker:GetInstanceWorker, injectIntoWorker:InjectIntoWorker)
Callers should not construct InjectionRequests.
InjectionRequest
  
start():void
Starts the injection process (either instance creation and injection or injection only).
InjectionRequest
Events
 Event Summary Defined By
  Dispatched when a injection into request is complete.InjectionRequest
  Dispatched when the injection creation request is complete.InjectionRequest
Constructor Detail
InjectionRequest()Constructor
public function InjectionRequest(injector:Injector, getInstanceWorker:GetInstanceWorker, injectIntoWorker:InjectIntoWorker)

Callers should not construct InjectionRequests. InjectionRequests are handed out by the Injector.

Parameters
injector:Injector
 
getInstanceWorker:GetInstanceWorker
 
injectIntoWorker:InjectIntoWorker
Method Detail
start()method
public function start():void

Starts the injection process (either instance creation and injection or injection only).

Event Detail
injectIntoComplete Event
Event Object Type: potomac.inject.InjectionEvent
InjectionEvent.type property = potomac.inject.InjectionEvent.INJECTINTO_COMPLETE

Dispatched when a injection into request is complete.

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.
instanceReady Event  
Event Object Type: potomac.inject.InjectionEvent
InjectionEvent.type property = potomac.inject.InjectionEvent.INJECTION_READY

Dispatched when the injection creation request is complete.