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