ApplicationLaunch class final

How the running application was started, so that the same one can be started again in another isolate: the bean springApplicationLaunch, present when the application was run with what returns it (SpringApplication.run(hotReload:), which the generated runApplication passes).

The web server's pool of isolates (server.isolates.count) starts each of its isolates with start. Everything here crosses to another isolate: application must not use anything from around it (the generated () => springApplication does not).

Constructors

ApplicationLaunch(SpringApplication application(), {List<String> args = const [], Map<String, String>? systemEnvironment, Map<String, Object?> properties = const {}, List<String> additionalProfiles = const [], bool async = false})
The launch of application with what run was given.
const

Properties

additionalProfiles → List<String>
The profiles added for this launch.
final
application → SpringApplication Function()
Returns the application.
final
args → List<String>
The command line.
final
async → bool
Whether it was started with runAsync.
final
hashCode → int
The hash code for this object.
no setterinherited
properties → Map<String, Object?>
The properties given over every other source.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
systemEnvironment → Map<String, String>?
The environment variables given instead of the process's.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start({Map<String, Object?> properties = const {}}) → Future<ConfigurableApplicationContext>
Starts the application again, where this is called (another isolate), with properties over its own: the port to share, no banner.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

beanName → const String
The bean's name.