JHPcte
Class PcteNotifier
java.lang.Object
|
+--JHPcte.PcteNotifier
- All Implemented Interfaces:
- java.util.EventListener, PcteNotificationListener
- public class PcteNotifier
- extends java.lang.Object
- implements PcteNotificationListener
Defines an HPcte notifier. Notification events are forwarded
to registered NotificationListeners.
|
Constructor Summary |
protected |
PcteNotifier(java.lang.String notifier_key)
Create notifier. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
notifier_key
protected java.lang.String notifier_key
multicaster
protected PcteEventMulticaster multicaster
PcteNotifier
protected PcteNotifier(java.lang.String notifier_key)
- Create notifier. A subset of the following parameters has to be
specified to define the resources to be observed and the
access type. Called from HPcte_notify_create.
- Parameters:
ref - PcteObjectReference to object to be observedlink_name - name of the link to be observedlink_type - name of link type instances of will be observedattribute_name - name of attribute to be observedaccess_event - type of access that will cause a notification event
getNotifierKey
public java.lang.String getNotifierKey()
addNotificationListener
public void addNotificationListener(PcteNotificationListener newEventListener)
- add an eventListener for this process. The event listener
gets a PcteNotificationEvent if a notification occurs
removeNotificationListener
public void removeNotificationListener(PcteNotificationListener eventListener)
- remove an eventListener
pcteNotify
public void pcteNotify(PcteNotificationEvent e)
- forward the event to all listeners
- Specified by:
pcteNotify in interface PcteNotificationListener