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

Package | org.flexunit.internals.dependency
Class | public class ExternalDependencyResolver
Inheritance | ExternalDependencyResolver flash.events.EventDispatcher
Implements | IExternalDependencyResolver

Public Properties

| Property | Defined By
--- | --- | ---
|  | ready : Boolean [read-only] Indicates if the ExternalDependencies managed by this Resolver are all resolved. | ExternalDependencyResolver

Public Methods

| Method | Defined By
--- | --- | ---
|  | ExternalDependencyResolver(clazz:Class, runner:IExternalDependencyRunner) Constructor | ExternalDependencyResolver
|  | dependencyFailed(token:ExternalDependencyToken, errorMessage:String):void Called by an ExternalDependencyToken when an IExternalDependencyLoader has failed to resolve a dependency | ExternalDependencyResolver
|  | dependencyResolved(token:ExternalDependencyToken, data:Object):void Called by an ExternalDependencyToken when an IExternalDependencyLoader has completed resolving the dependency and is ready with data | ExternalDependencyResolver
|  | resolveDependencies():Boolean Looks for external dependencies in the test class and begins the process of resolving them | ExternalDependencyResolver

Public Constants

| Constant | Defined By
--- | --- | ---
|  | ALL_DEPENDENCIES_FOR_RUNNER_RESOLVED : String = runnerDependenciesResolved [static] Event constant indicating that all outstanding dependencies are now resolved | ExternalDependencyResolver
|  | DEPENDENCY_FOR_RUNNER_FAILED : String = runnerDependencyFailed [static] Event constant indicating that a given dependency failed to resolve itself | ExternalDependencyResolver

Property Detail

ready | property

`ready:Boolean` [read-only]

Indicates if the ExternalDependencies managed by this Resolver are all resolved.

Implementation
`public function get ready():Boolean`
Constructor Detail

ExternalDependencyResolver | () | Constructor

`public function ExternalDependencyResolver(clazz:Class, runner:IExternalDependencyRunner)`

Constructor

Parameters

| `clazz:Class` — with possible dependencies
| `runner:IExternalDependencyRunner` — the runner pending until all dependencies are resolved

Method Detail

dependencyFailed | () | method

`public function dependencyFailed(token:ExternalDependencyToken, errorMessage:String):void`

Called by an ExternalDependencyToken when an IExternalDependencyLoader has failed to resolve a dependency

Parameters

| `token:ExternalDependencyToken` — the token keeping track of this dependency load
| `errorMessage:String` — the returned data

dependencyResolved | () | method |

`public function dependencyResolved(token:ExternalDependencyToken, data:Object):void`

Called by an ExternalDependencyToken when an IExternalDependencyLoader has completed resolving the dependency and is ready with data

Parameters

| `token:ExternalDependencyToken` — the token keeping track of this dependency load
| `data:Object` — the returned data

resolveDependencies | () | method |

`public function resolveDependencies():Boolean`

Looks for external dependencies in the test class and begins the process of resolving them

Returns

| `Boolean` — true if there are external dependencies

Constant Detail

ALL_DEPENDENCIES_FOR_RUNNER_RESOLVED | Constant

`public static const ALL_DEPENDENCIES_FOR_RUNNER_RESOLVED:String = runnerDependenciesResolved`

Event constant indicating that all outstanding dependencies are now resolved

DEPENDENCY_FOR_RUNNER_FAILED | Constant |

`public static const DEPENDENCY_FOR_RUNNER_FAILED:String = runnerDependencyFailed`

Event constant indicating that a given dependency failed to resolve itself

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