ApplicationContext class

DartBoot Application entry side

应用的入口类

@加载配置文件 @扫描RestController @启动Http服务 @启动Eureka客户端

@author luodongseu

Constructors

ApplicationContext({dynamic configFilePath = 'config.yaml', String rootPath = '.', List<String> runArgs})

Properties

activeProfile String
激活的profile
read / write
hashCode int
The hash code for this object.
read-onlyinherited
logger Log
read / write
rootPath String
read-only
runArgs List<String>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addStarter(Completer completer) → void
添加启动器,通过Completer Completer.complete()控制生命周期
initialize({bool reload = false}) → void
初始化操作
listenExit(ExitEvent event) → void
添加退出监听器
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
stop() → void
关闭应用
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) → dynamic
获取全局配置操作

Static Properties

instance ApplicationContext
实例
read-only