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 void
addListener(ConnectorNamingEventListener listener)
To add Listener which gets notified when the event happensstatic ConnectorNamingEventNotifier
getInstance()
Returns an instance of event notifier (singleton)void
notifyListeners(ConnectorNamingEvent event)
Notifies all the registered listeners about the naming event.void
removeListener(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:
addListener
in interfaceConnectorNamingEventNotifier
- Parameters:
listener
-
-
removeListener
public void removeListener(ConnectorNamingEventListener listener)
To remove listener such that it wont be notified anymore.- Specified by:
removeListener
in interfaceConnectorNamingEventNotifier
- Parameters:
listener
-
-
notifyListeners
public void notifyListeners(ConnectorNamingEvent event)
Notifies all the registered listeners about the naming event.- Specified by:
notifyListeners
in interfaceConnectorNamingEventNotifier
- Parameters:
event
-
-
-