Package com.mikuac.shiro.handler
Class EventHandler
java.lang.Object
com.mikuac.shiro.handler.EventHandler
- All Implemented Interfaces:
org.springframework.boot.ApplicationRunner
@Component
public class EventHandler
extends Object
implements org.springframework.boot.ApplicationRunner
事件处理器
-
Constructor Summary
ConstructorsConstructorDescriptionEventHandler(MetaEvent meta, NoticeEvent notice, NotifyEvent notify, MessageEvent message, RequestEvent request) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandler(Bot bot, JsonObjectWrapper resp) 事件分发voidrun(org.springframework.boot.ApplicationArguments args)
-
Constructor Details
-
EventHandler
@Autowired public EventHandler(MetaEvent meta, NoticeEvent notice, NotifyEvent notify, MessageEvent message, RequestEvent request)
-
-
Method Details
-
run
public void run(org.springframework.boot.ApplicationArguments args) - Specified by:
runin interfaceorg.springframework.boot.ApplicationRunner
-
handler
事件分发- Parameters:
bot-Botresp-JsonObjectWrapper
-