Methods Summary |
---|
public void | addListener(ConnectorNamingEventListener listener)To add Listener which gets notified when the event happens
listeners.add(listener);
|
public static synchronized ConnectorNamingEventNotifier | getInstance()Returns an instance of event notifier (singleton)
if(notifier == null){
notifier = new ConnectorResourceNamingEventNotifier();
}
return notifier;
|
public void | notifyListeners(ConnectorNamingEvent event)Notifies all the registered listeners about the naming event.
for(ConnectorNamingEventListener listener : listeners){
listener.connectorNamingEventPerformed(event);
}
|
public void | removeListener(ConnectorNamingEventListener listener)To remove listener such that it wont be notified anymore.
listeners.remove(listener);
|