Packageorg.flexunit.internals.dependency
Classpublic class ExternalRunnerDependencyWatcher
InheritanceExternalRunnerDependencyWatcher Inheritance 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
 PropertyDefined 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
 MethodDefined By
  
Constructor.
ExternalRunnerDependencyWatcher
  
Tells this watcher to monitor an additional IExternalDependencyResolver
ExternalRunnerDependencyWatcher
Protected Methods
 MethodDefined By
  
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
  
Monitors an IExternalDependencyResolver for success or failure to resolve a dependency
ExternalRunnerDependencyWatcher
  
Notifies the FlexUnit core that all dependencies watched by this instance are resolved
ExternalRunnerDependencyWatcher
Property Detail
allDependenciesResolvedproperty
allDependenciesResolved:Boolean  [read-only]

Indicates if there are still unresolved dependencies in any runner


Implementation
    public function get allDependenciesResolved():Boolean
pendingCountproperty 
pendingCount:int  [read-only]

Returns the number of pending start ups


Implementation
    public function get pendingCount():int
tokenproperty 
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