Package org.bedework.util.jms.listeners
Class SysEventListenerImpl
- java.lang.Object
-
- org.bedework.util.jms.listeners.SysEventListener
-
- org.bedework.util.jms.listeners.SysEventListenerImpl
-
public class SysEventListenerImpl extends SysEventListener
This is the implementation of a notifications listener.- Author:
- Mike Douglass douglm - rpi.edu
-
-
Field Summary
Fields Modifier and Type Field Description protected Propertiespropsprotected StringsysCode
-
Constructor Summary
Constructors Constructor Description SysEventListenerImpl(String code)SysEventListenerImpl(String code, SysEventActionClass actionObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaction(SysEvent ev)Called whenever a matching event occurs.voidsetActionClassName(String className)Set name of action class.voidsetActionObject(SysEventActionClass actionObject)Supply action object - will set class name.StringtoXml()Create a string representation.
-
-
-
Field Detail
-
sysCode
protected String sysCode
-
props
protected Properties props
-
-
Constructor Detail
-
SysEventListenerImpl
public SysEventListenerImpl(String code)
- Parameters:
code- the system code
-
SysEventListenerImpl
public SysEventListenerImpl(String code, SysEventActionClass actionObject) throws NotificationException
- Parameters:
code- the system codeactionObject- the object- Throws:
NotificationException
-
-
Method Detail
-
setActionClassName
public void setActionClassName(String className) throws NotificationException
Description copied from class:SysEventListenerSet name of action class.- Specified by:
setActionClassNamein classSysEventListener- Throws:
NotificationException- on fatal error
-
setActionObject
public void setActionObject(SysEventActionClass actionObject) throws NotificationException
Description copied from class:SysEventListenerSupply action object - will set class name.- Specified by:
setActionObjectin classSysEventListener- Throws:
NotificationException- on fatal error
-
action
public void action(SysEvent ev) throws NotificationException
Description copied from class:SysEventListenerCalled whenever a matching event occurs. Will call the action class.- Specified by:
actionin classSysEventListener- Throws:
NotificationException- on fatal error
-
toXml
public String toXml() throws NotificationException
Description copied from class:SysEventListenerCreate a string representation.- Specified by:
toXmlin classSysEventListener- Returns:
- String
- Throws:
NotificationException- on fatal error
-
-