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

Package | org.flexunit.internals.dependency
Interface | public interface IExternalDependencyResolver extends flash.events.IEventDispatcher
Implementors | ExternalDependencyResolver

IExternalDependencyResolver are responsible for resolving external dependencies on a test class

Public Properties

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

Public Methods

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

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`
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

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