Package com.mikuac.shiro.common.utils
Class EventUtils
java.lang.Object
com.mikuac.shiro.common.utils.EventUtils
-
Constructor Summary
ConstructorsConstructorDescriptionEventUtils(org.springframework.context.ApplicationContext ctx, InjectionHandler injection) -
Method Summary
Modifier and TypeMethodDescriptiongetInterceptor(Class<? extends BotMessageEventInterceptor> interceptorClass) 获取拦截器获取插件booleanpushAnyMessageEvent(Bot bot, JsonObjectWrapper resp, List<ArrayMsg> arrayMsg) 推送消息booleansetInterceptor(Bot bot, MessageEvent event) 设置拦截器
-
Constructor Details
-
EventUtils
@Autowired public EventUtils(org.springframework.context.ApplicationContext ctx, InjectionHandler injection)
-
-
Method Details
-
getPlugin
获取插件 -
getInterceptor
public BotMessageEventInterceptor getInterceptor(Class<? extends BotMessageEventInterceptor> interceptorClass) 获取拦截器- Parameters:
interceptorClass-Class- Returns:
BotMessageEventInterceptor
-
setInterceptor
设置拦截器- Parameters:
bot-Botevent-MessageEvent- Returns:
- boolean
-
pushAnyMessageEvent
推送消息- Parameters:
bot-Botresp-JsonObjectWrapperarrayMsg-ArrayMsg- Returns:
- 是否中断向下执行
-