public abstract class PluginBase extends Object implements IPluginInterfaceEx
| Constructor and Description |
|---|
PluginBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IJNRPEEventListener listener)
Adds a new listener to the list of objects that will receive the messages.
|
void |
addListeners(Collection<IJNRPEEventListener> listeners)
Adds a new collection of listeners.
|
void |
sendEvent(LogEvent evt,
String sMessage)
Sends an event.
|
void |
sendEvent(LogEvent evt,
String sMessage,
Exception exc)
Sends an event.
|
void |
sendEvent(String sCustomEvent,
EventParam... vParams)
Sends a custom event.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic final void addListener(IJNRPEEventListener listener)
addListener in interface IPluginInterfaceExlistener - The new listenerpublic final void addListeners(Collection<IJNRPEEventListener> listeners)
addListeners in interface IPluginInterfaceExlisteners - The collection of listeners to be addedpublic final void sendEvent(LogEvent evt, String sMessage)
evt - The event typesMessage - The messagepublic final void sendEvent(LogEvent evt, String sMessage, Exception exc)
evt - The event typesMessage - The messageexc - The exception to be attached to the eventpublic final void sendEvent(String sCustomEvent, EventParam... vParams)
sCustomEvent - The custom event identifiervParams - The parameter of the event. Can be null.Copyright © 2013. All Rights Reserved.