Package | Description |
---|---|
com.forte.qqrobot |
主要是core所需要的包
|
Modifier and Type | Interface and Description |
---|---|
interface |
Application<CONFIG extends BaseConfiguration>
用户实现的启动器的接口
泛型定义:
- 配置类的具体类型
定义启动类执行前后方法
|
class |
BaseApplication<CONFIG extends BaseConfiguration,SEND extends SenderSendList,SET extends SenderSetList,GET extends SenderGetList,CONTEXT extends SimpleRobotContext<SEND,SET,GET>>
启动类总抽象类,在此实现部分通用功能并向组件提供抽象方法来获取功能的拓展与兼容
实现closeable接口
|
class |
BaseConfiguration<T extends BaseConfiguration>
配置类的根类,定义包扫描方法
|
interface |
ConfigApplication<CONFIG extends BaseConfiguration>
允许使用配置文件的接口。
目前暂时仅支持properties(因为简单且不需要其他依赖
|
interface |
ResourceApplication<CONFIG extends BaseConfiguration>
对用户配置接口的拓展,提供读取配置文件的形式来对配置类进行自动装填。
目前仅支持properties类型的配置文件。
数组类型的参数使用逗号','分隔。
其他特殊的配置类在出现其他优化方式之前,可以暂时使用新提供的before方法进行额外配置。
|
Modifier and Type | Method and Description |
---|---|
protected static <T extends BaseConfiguration> |
ResourceDispatchCenter.saveConfiguration(T configuration)
保存一个配置类对象
对应的get方法需要在对应的子类中自行书写 |
Modifier and Type | Method and Description |
---|---|
static BaseConfiguration |
ResourceDispatchCenter.getBaseConfigration()
获取基础配置类
|
BaseConfiguration |
BotRuntime.getConfiguration() |
Modifier and Type | Method and Description |
---|---|
static BotRuntime |
BotRuntime.initRuntime(Collection<ListenerInfo> listenerInfos,
BaseConfiguration configuration,
BotManager botManager) |
static BotRuntime |
BotRuntime.initRuntime(Collection<ListenerInfo> listenerInfos,
BotInfo[] botInfos,
BaseConfiguration configuration,
Supplier<BotManager> botManagerSupplier)
初始化runtime对象
|
Copyright © 2020. All rights reserved.