| Package | potomac.inject |
| Class | public dynamic class InjectionRequest |
| Inheritance | InjectionRequest flash.events.EventDispatcher |
When the request is complete, one of either InjectionEvent.INSTANCE_READY or InjectionEvent.INJECTINTO_COMPLETE will be dispatched appropriate to the request.
| Method | Defined 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 | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when a injection into request is complete. | InjectionRequest | |||
| Dispatched when the injection creation request is complete. | InjectionRequest | |||
| InjectionRequest | () | Constructor |
public function InjectionRequest(injector:Injector, getInstanceWorker:GetInstanceWorker, injectIntoWorker:InjectIntoWorker)Callers should not construct InjectionRequests. InjectionRequests are handed out by the Injector.
Parametersinjector:Injector | |
getInstanceWorker:GetInstanceWorker | |
injectIntoWorker:InjectIntoWorker |
| start | () | method |
public function start():voidStarts the injection process (either instance creation and injection or injection only).
| injectIntoComplete | Event |
potomac.inject.InjectionEventpotomac.inject.InjectionEvent.INJECTINTO_COMPLETEDispatched when a injection into request is complete.
The InjectionEvent.INJECTINTO_COMPLETE constant defines the value of thetype property of the event object
for a injectIntoComplete event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The 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. |
instance | The object whose injections were satisfied. |
| instanceReady | Event |
potomac.inject.InjectionEventpotomac.inject.InjectionEvent.INJECTION_READYDispatched when the injection creation request is complete.