Package com.mikuac.shiro.common.utils
Class EventUtils
java.lang.Object
com.mikuac.shiro.common.utils.EventUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInterceptor(Class<? extends BotMessageEventInterceptor> interceptorClass) 获取拦截器获取插件voidpushAnyMessageEvent(Bot bot, com.alibaba.fastjson2.JSONObject resp, List<ArrayMsg> arrayMsg) 推送消息voidsetCtx(org.springframework.context.ApplicationContext ctx) voidsetInjection(InjectionHandler injection) booleansetInterceptor(Bot bot, MessageEvent event) 设置拦截器
-
Constructor Details
-
EventUtils
public EventUtils()
-
-
Method Details
-
setCtx
@Autowired public void setCtx(org.springframework.context.ApplicationContext ctx) -
setInjection
-
getPlugin
获取插件 -
getInterceptor
public BotMessageEventInterceptor getInterceptor(Class<? extends BotMessageEventInterceptor> interceptorClass) 获取拦截器- Parameters:
interceptorClass-Class- Returns:
BotMessageEventInterceptor
-
setInterceptor
设置拦截器- Parameters:
bot-Botevent-MessageEvent- Returns:
- boolean
-
pushAnyMessageEvent
public void pushAnyMessageEvent(Bot bot, com.alibaba.fastjson2.JSONObject resp, List<ArrayMsg> arrayMsg) 推送消息
-