Package systems.dmx.core.service
Class DMXEvent
- java.lang.Object
-
- systems.dmx.core.service.DMXEvent
-
public abstract class DMXEvent extends Object
Base class for all events. That is core events as well as plugin events.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
dispatch(EventListener listener, Object... params)
Delivers this event to the given listener.static DMXEvent
getEvent(Class listenerInterface)
Returns the event that corresponds to the given listener interface.Class
getListenerInterface()
Returns the corresponding listener interface for this event.
-
-
-
Constructor Detail
-
DMXEvent
public DMXEvent(Class listenerInterface)
-
-
Method Detail
-
dispatch
public abstract void dispatch(EventListener listener, Object... params)
Delivers this event to the given listener.
-
getListenerInterface
public Class getListenerInterface()
Returns the corresponding listener interface for this event.
-
-