public class PluginListenerRegistration
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static PluginListenerRegistration |
getInstance() |
void |
listen(PluginEventType eventType,
PluginEventListener listener)
监听某事件
|
void |
listen(PluginEventType eventType,
PluginEventListener listener,
PluginFilter filter)
只监听部分插件的事件
|
void |
listenRunningChanged(PluginEventListener listener)
监听afterRun和afterStop事件
|
void |
listenRunningChanged(PluginEventListener listener,
PluginFilter filter)
监听afterRun和afterStop事件
|
void |
onServletStop() |
void |
stopListen(PluginEventListener listener)
停止监听
|
public void onServletStop()
public static PluginListenerRegistration getInstance()
public void listen(PluginEventType eventType, PluginEventListener listener)
public void listenRunningChanged(PluginEventListener listener)
public void listenRunningChanged(PluginEventListener listener, PluginFilter filter)
public void listen(PluginEventType eventType, PluginEventListener listener, PluginFilter filter)
public void stopListen(PluginEventListener listener)