public void executeHookAfter(final SendMessageContext context) { if (!this.hookList.isEmpty()) { for (SendMessageHook hook : this.hookList) { try { hook.sendMessageAfter(context); } catch (Throwable e) { } } } }
public void registerHook(final SendMessageHook hook) { this.hookList.add(hook); log.info("register sendMessage Hook, {}", hook.hookName()); }