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 aquedart serve command creates an application object on your behalf.

Constructors

Application()

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

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