DarwinApplication class

Builder for DarwinSystem. Combines generated DarwinSystemGeneratedArgs and creates the DarwinSystemUserArgs. Also has options for configuring the created DarwinSystem.

Constructors

DarwinApplication()

Properties

configurationSources List<ConfigurationSource>
The list of ConfigurationSources that will be passed to the DarwinSystem.
getter/setter pair
exitProcessOnStop bool
Forces the process to exit when the application is stopped.
getter/setter pair
generatedArgs DarwinSystemGeneratedArgs
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isShuttingDown bool
Returns true if the system received a shutdown signal.
no setter
module ↔ Module
getter/setter pair
plugins List<DarwinPlugin>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system DarwinSystem
getter/setter pair
userArgs DarwinSystemUserArgs
no setter
watchProcessSignals bool
Configures if the application should watch process signals.
getter/setter pair

Methods

addConfigurationSource(ConfigurationSource source) → void
Adds a ConfigurationSource to configurationSources.
execute([List<String> args = const []]) Future
Starts the DarwinSystem with the current configuration and statically links DarwinSystem.internalInstance as well as system.
install(DarwinPlugin plugin) → void
Installs a DarwinPlugin onto this application.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLogHandler(LogHandler handler) → void
Manually overrides DarwinSystemLoggingMixin.handler.
setLogLevel(Level level) → void
Manually overrides DarwinSystemLoggingMixin.level.
setProfile(String profile) → void
Sets the DarwinSystemProfileMixin.profile for this application. Can be used to define logical execute environments.
stop() → void
Stops the DarwinSystem and exits the process if exitProcessOnStop is set to true.
toString() String
A string representation of this object.
inherited

Operators

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