| 限定符和类型 | 方法和说明 |
|---|---|
static AbstractConsoleApplication |
ApplicationRunner.consoleApplication(ConsoleConfig config)
使用一个配置对象启动并获取控制台应用对象
框架中获取配置通常是使用java代码设置工厂,结合配置文件(classpath:/console.yml) |
static Interpreter |
ApplicationRunner.getInterpreter(ConsoleConfig config)
根据配置生成解释器对象,此解释器可以使用字符串命令行执行所有注册到框架中的方法
|
| 构造器和说明 |
|---|
ConsoleApplication(ConsoleConfig config,
Interpreter interpreter)
需要以一个配置类和一个解释器做为生成此实例的条件
生成对象时,会执行配置中的初始化命令
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Console.onException(ConsoleConfig config,
Exception e) |
void |
Console.onException(ConsoleConfig config,
Exception e,
String msg) |
void |
Console.onException(ConsoleConfig config,
Exception e,
String msg,
boolean exit) |
| 限定符和类型 | 方法和说明 |
|---|---|
ConsoleConfig |
ConsoleConfigProvider.DefaultValueConfigBuilder.build() |
ConsoleConfig |
FactoryCollector.ok() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
EventPublisher.onAppStarted(ConsoleConfig config) |
default void |
AppListenerAdapter.onAppStarted(ConsoleConfig config) |
void |
AppListener.onAppStarted(ConsoleConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
ConsoleConfig |
Interpreter.getConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Interpreter |
Interpreter.getInstance(ConsoleConfig config) |
protected static void |
AssemblyFactory.init(ConsoleConfig conf,
Interpreter interpreter_)
根据配置进行初始化
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Set<Supplier<Object>> |
PresetFactoryManager.getFactories(ConsoleConfig config)
返回所有工厂的全集
|
void |
SystemPresetCmd.onAppStarted(ConsoleConfig conf) |
Copyright © 2021. All rights reserved.