Package org.bedework.util.jms
Class NotificationsHandler
java.lang.Object
org.bedework.util.jms.NotificationsHandler
- Direct Known Subclasses:
JmsNotificationsHandlerImpl
Handler which may be called to notify the system that something changed.
Some implementations may be able to call immediately changes take effect, for example the bedework hibernate implementation can call at the point a calendar is changed. Others may have to poll to determine if something has changed.
- Author:
- Mike Douglass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidCalled to notify container that an event occurred.abstract voidregisterListener(SysEventListener l, boolean persistent) Register a listener.abstract voidRemove a listener.
-
Constructor Details
-
NotificationsHandler
public NotificationsHandler()
-
-
Method Details
-
post
Called to notify container that an event occurred.- Parameters:
ev- the event- Throws:
NotificationException- on fatal error
-
registerListener
public abstract void registerListener(SysEventListener l, boolean persistent) throws NotificationException Register a listener.- Parameters:
l- the listenerpersistent- true if this listener is to be stored in the database and reregistered at each system startup.- Throws:
NotificationException- on fatal error
-
removeListener
Remove a listener. If persistent it will be deleted from the database.- Parameters:
l- the listener- Throws:
NotificationException- on fatal error
-