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.


Field Summary
protected  PcteEventMulticaster multicaster
           
protected  java.lang.String notifier_key
           
 
Constructor Summary
protected PcteNotifier(java.lang.String notifier_key)
          Create notifier.
 
Method Summary
 void addNotificationListener(PcteNotificationListener newEventListener)
          add an eventListener for this process.
 java.lang.String getNotifierKey()
           
 void pcteNotify(PcteNotificationEvent e)
          forward the event to all listeners
 void removeNotificationListener(PcteNotificationListener eventListener)
          remove an eventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notifier_key

protected java.lang.String notifier_key

multicaster

protected PcteEventMulticaster multicaster
Constructor Detail

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 observed
link_name - name of the link to be observed
link_type - name of link type instances of will be observed
attribute_name - name of attribute to be observed
access_event - type of access that will cause a notification event
Method Detail

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