Package | Description |
---|---|
com.forte.qqrobot |
主要是core所需要的包
|
com.forte.qqrobot.bot | |
com.forte.qqrobot.listener.invoker |
Modifier and Type | Method and Description |
---|---|
BotManager |
BotRuntime.getBotManager()
获取BotManager
|
BotManager |
BaseApplication.getBotManager()
获取账号管理器,在dependCenter初始化完成被初始化
|
BotManager |
SimpleRobotContext.getBotManager()
获取Bot管理器
|
Modifier and Type | Method and Description |
---|---|
protected abstract CONTEXT |
BaseApplication.getComponentContext(MsgSender defaultMsgSender,
BotManager manager,
MsgParser msgParser,
MsgProcessor processor,
DependCenter dependCenter)
获取一个组件专属的SimpleRobotContext对象
|
protected abstract MsgSender |
BaseApplication.getDefaultSender(DependCenter dependCenter,
ListenerManager manager,
BotManager botManager)
获取一个不使用在监听函数中的默认送信器
|
protected abstract GET |
BaseApplication.getGetter(MsgGet msgGet,
BotManager botManager)
提供一个msgGet,将其转化为GetList
|
protected Function<MsgGet,RootSenderList> |
BaseApplication.getRootSenderFunction(BotManager botManager)
根据
BaseApplication.getSender(MsgGet, BotManager) , BaseApplication.getSetter(MsgGet, BotManager) , BaseApplication.getGetter(MsgGet, BotManager) 三个函数构建一个RootSenderList
参数分别为一个BotManager和一个MsgGet对象
如果组件不是分为三个部分而构建,则可以考虑重写此函数
此函数最终会被送入组件实现的runServer中 |
protected abstract SEND |
BaseApplication.getSender(MsgGet msgGet,
BotManager botManager)
提供一个msgGet,将其转化为SendList
|
protected abstract SET |
BaseApplication.getSetter(MsgGet msgGet,
BotManager botManager)
提供一个msgGet,将其转化为SetList
|
static BotRuntime |
BotRuntime.initRuntime(Collection<ListenerInfo> listenerInfos,
BaseConfiguration configuration,
BotManager botManager) |
Modifier and Type | Method and Description |
---|---|
static BotRuntime |
BotRuntime.initRuntime(Collection<ListenerInfo> listenerInfos,
BotInfo[] botInfos,
BaseConfiguration configuration,
Supplier<BotManager> botManagerSupplier)
初始化runtime对象
|
Constructor and Description |
---|
SimpleRobotContext(SEND sender,
SET setter,
GET getter,
BotManager manager,
MsgParser msgParser,
MsgProcessor processor,
DependCenter dependCenter)
构造函数
|
Modifier and Type | Class and Description |
---|---|
class |
BotManagerImpl
BotManager 的基础实现类,使用Map储存数据。 |
Modifier and Type | Method and Description |
---|---|
ListenerManager |
ListenerMethodScanner.buildManager(BotManager botManager,
MsgIntercept[] intercepts)
构建监听函数管理器实例
|
Constructor and Description |
---|
ListenerManager(Collection<ListenerMethod> methods,
BotManager botManager,
MsgIntercept[] intercepts)
构造方法,对函数进行分组保存
|
Copyright © 2020. All rights reserved.