Package org.bedework.util.jms.listeners
Class SysEventListener
- java.lang.Object
-
- org.bedework.util.jms.listeners.SysEventListener
-
- Direct Known Subclasses:
SysEventListenerImpl
public abstract class SysEventListener extends Object
Listener class registered with the notifications handler to listen for various types of event.- Author:
- Mike Douglass
-
-
Constructor Summary
Constructors Constructor Description SysEventListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidaction(SysEvent ev)Called whenever a matching event occurs.abstract voidsetActionClassName(String className)Set name of action class.abstract voidsetActionObject(SysEventActionClass actionObject)Supply action object - will set class name.abstract StringtoXml()Create a string representation.
-
-
-
Method Detail
-
setActionClassName
public abstract void setActionClassName(String className) throws NotificationException
Set name of action class.- Parameters:
className-- Throws:
NotificationException- on fatal error
-
setActionObject
public abstract void setActionObject(SysEventActionClass actionObject) throws NotificationException
Supply action object - will set class name.- Parameters:
actionObject-- Throws:
NotificationException- on fatal error
-
action
public abstract void action(SysEvent ev) throws NotificationException
Called whenever a matching event occurs. Will call the action class.- Parameters:
ev-- Throws:
NotificationException- on fatal error
-
toXml
public abstract String toXml() throws NotificationException
Create a string representation.- Returns:
- String
- Throws:
NotificationException- on fatal error
-
-