Class ConnectorResourceNamingEventNotifier
- java.lang.Object
-
- com.sun.enterprise.connectors.naming.ConnectorResourceNamingEventNotifier
-
- All Implemented Interfaces:
ConnectorNamingEventNotifier
public class ConnectorResourceNamingEventNotifier extends Object implements ConnectorNamingEventNotifier
Notifier for connector resource naming events- Author:
- Jagadish Ramu
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(ConnectorNamingEventListener listener)To add Listener which gets notified when the event happensstatic ConnectorNamingEventNotifiergetInstance()Returns an instance of event notifier (singleton)voidnotifyListeners(ConnectorNamingEvent event)Notifies all the registered listeners about the naming event.voidremoveListener(ConnectorNamingEventListener listener)To remove listener such that it wont be notified anymore.
-
-
-
Method Detail
-
getInstance
public static ConnectorNamingEventNotifier getInstance()
Returns an instance of event notifier (singleton)- Returns:
- ConnectorNamingEventNotifier
-
addListener
public void addListener(ConnectorNamingEventListener listener)
To add Listener which gets notified when the event happens- Specified by:
addListenerin interfaceConnectorNamingEventNotifier- Parameters:
listener-
-
removeListener
public void removeListener(ConnectorNamingEventListener listener)
To remove listener such that it wont be notified anymore.- Specified by:
removeListenerin interfaceConnectorNamingEventNotifier- Parameters:
listener-
-
notifyListeners
public void notifyListeners(ConnectorNamingEvent event)
Notifies all the registered listeners about the naming event.- Specified by:
notifyListenersin interfaceConnectorNamingEventNotifier- Parameters:
event-
-
-