API Documentation | All Packages | All Classes | Index | Frames No Frames |
ExternalRunnerDependencyWatcher

Package | org.flexunit.internals.dependency
Class | public class ExternalRunnerDependencyWatcher
Inheritance | ExternalRunnerDependencyWatcher Object
Implements | IExternalRunnerDependencyWatcher

Watches for external dependencies to be resolved. This class is used by the core and passed to all IExteranalDependencyRunner instances to monitor their resolution. It effectively prevents the core from beginning tests until all dependencies are resolved.

Public Properties

| Property | Defined By
--- | --- | ---
|  | allDependenciesResolved : Boolean [read-only] Indicates if there are still unresolved dependencies in any runner | ExternalRunnerDependencyWatcher
|  | pendingCount : int [read-only] Returns the number of pending start ups | ExternalRunnerDependencyWatcher
|  | token : AsyncCoreStartupToken [read-only] Returns the start up AsyncCoreStartupToken that the FlexUnit core uses to wait for the resolution of all dependencies | ExternalRunnerDependencyWatcher

Public Methods

| Method | Defined By
--- | --- | ---
|  | ExternalRunnerDependencyWatcher() Constructor. | ExternalRunnerDependencyWatcher
|  | watchDependencyResolver(dr:IExternalDependencyResolver):void Tells this watcher to monitor an additional IExternalDependencyResolver | ExternalRunnerDependencyWatcher

Protected Methods

| Method | Defined By
--- | --- | ---
|  | cleanupListeners(dr:IExternalDependencyResolver):void Cleans up after an IExternalDependencyResolver succeeds or fails in resolving a dependency | ExternalRunnerDependencyWatcher
|  | handleRunnerFailed(event:Event):void Event listener that is notified when a given runner has failed to resolve dependencies | ExternalRunnerDependencyWatcher
|  | handleRunnerReady(event:Event):void Event listener that is notified when a given runner has all of its dependencies resolved | ExternalRunnerDependencyWatcher
|  | monitorForDependency(dr:IExternalDependencyResolver):void Monitors an IExternalDependencyResolver for success or failure to resolve a dependency | ExternalRunnerDependencyWatcher
|  | sendReadyNotification():void Notifies the FlexUnit core that all dependencies watched by this instance are resolved | ExternalRunnerDependencyWatcher

Property Detail

allDependenciesResolved | property

`allDependenciesResolved:Boolean` [read-only]

Indicates if there are still unresolved dependencies in any runner

Implementation
`public function get allDependenciesResolved():Boolean`

pendingCount | property |

`pendingCount:int` [read-only]

Returns the number of pending start ups

Implementation
`public function get pendingCount():int`

token | property |

`token:AsyncCoreStartupToken` [read-only]

Returns the start up `AsyncCoreStartupToken` that the FlexUnit core uses to wait for the resolution of all dependencies

Implementation
`public function get token():AsyncCoreStartupToken`
Constructor Detail

ExternalRunnerDependencyWatcher | () | Constructor

`public function ExternalRunnerDependencyWatcher()`

Constructor.

Method Detail

cleanupListeners | () | method

`protected function cleanupListeners(dr:IExternalDependencyResolver):void`

Cleans up after an IExternalDependencyResolver succeeds or fails in resolving a dependency

Parameters

| `dr:IExternalDependencyResolver` — and IExternalDependencyResolver

handleRunnerFailed | () | method |

`protected function handleRunnerFailed(event:Event):void`

Event listener that is notified when a given runner has failed to resolve dependencies

Parameters

| `event:Event`

handleRunnerReady | () | method |

`protected function handleRunnerReady(event:Event):void`

Event listener that is notified when a given runner has all of its dependencies resolved

Parameters

| `event:Event`

monitorForDependency | () | method |

`protected function monitorForDependency(dr:IExternalDependencyResolver):void`

Monitors an IExternalDependencyResolver for success or failure to resolve a dependency

Parameters

| `dr:IExternalDependencyResolver` — and IExternalDependencyResolver

sendReadyNotification | () | method |

`protected function sendReadyNotification():void`

Notifies the FlexUnit core that all dependencies watched by this instance are resolved

watchDependencyResolver | () | method |

`public function watchDependencyResolver(dr:IExternalDependencyResolver):void`

Tells this watcher to monitor an additional IExternalDependencyResolver

Parameters

| `dr:IExternalDependencyResolver` — IExternalDependencyResolver

Thu Apr 10 2014, 08:07 AM +10:00