Application<T extends ApplicationChannel> class

This object starts and stops instances of your ApplicationChannel.

An application object opens HTTP listeners that forward requests to instances of your ApplicationChannel. It is unlikely that you need to use this class directly - the aqueduct serve command creates an application object on your behalf.

Constructors

Application()

Properties

channel → T
The ApplicationChannel handling requests while under test. [...]
read-only
isolateStartupTimeout Duration
The duration to wait for each isolate during startup before failing. [...]
read / write
isRunning bool
Whether or not this application is running. [...]
read-only
logger Logger
The logger that this application will write messages to. [...]
read / write
options ApplicationOptions
The options used to configure this application. [...]
read / write
server ApplicationServer
The ApplicationServer listening for HTTP requests while under test. [...]
read / write
supervisors List<ApplicationIsolateSupervisor>
A list of isolates that this application supervises.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

start({int numberOfInstances: 1, bool consoleLogging: false }) Future
Starts this application, allowing it to handle HTTP requests. [...]
startOnCurrentIsolate() Future
Starts the application on the current isolate, and does not spawn additional isolates. [...]
stop() Future
Stops the application from running. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Methods

document(Type channelType, ApplicationOptions config, Map<String, dynamic> projectSpec) Future<APIDocument>
Creates an APIDocument from an ApplicationChannel. [...]