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 Details

    • EventHandler

      public EventHandler()
  • Method Details

    • setMeta

      @Autowired public void setMeta(MetaEvent meta)
    • setNotice

      @Autowired public void setNotice(NoticeEvent notice)
    • setNotify

      @Autowired public void setNotify(NotifyEvent notify)
    • setMessage

      @Autowired public void setMessage(MessageEvent message)
    • setRequest

      @Autowired public void setRequest(RequestEvent request)
    • run

      public void run(org.springframework.boot.ApplicationArguments args)
      Specified by:
      run in interface org.springframework.boot.ApplicationRunner
    • handler

      public void handler(Bot bot, com.alibaba.fastjson2.JSONObject resp)
      事件分发
      Parameters:
      bot - Bot
      resp - JSONObject