public class ConnectorResourceNamingEventNotifier extends Object implements ConnectorNamingEventNotifier
Modifier and Type | Method and Description |
---|---|
void |
addListener(ConnectorNamingEventListener listener)
To add Listener which gets notified when the event happens
|
static 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.
|
public static ConnectorNamingEventNotifier getInstance()
public void addListener(ConnectorNamingEventListener listener)
addListener
in interface ConnectorNamingEventNotifier
listener
- public void removeListener(ConnectorNamingEventListener listener)
removeListener
in interface ConnectorNamingEventNotifier
listener
- public void notifyListeners(ConnectorNamingEvent event)
notifyListeners
in interface ConnectorNamingEventNotifier
event
- Copyright © 2020. All rights reserved.