public interface ServiceLocatorListener
ServiceLocatorFactory
in order to listen on service locators
coming and going. Implementations of this interface must be able to be stored in a HashMapModifier and Type | Method and Description |
---|---|
void |
initialize(Set<ServiceLocator> initialLocators)
This method returns the complete list of named service
locators at the time that this listener is registered.
|
void |
locatorAdded(ServiceLocator added)
This method is called whenever a ServiceLocator has been
added to the set of ServiceLocators.
|
void |
locatorDestroyed(ServiceLocator destroyed)
This method is called whenever a ServiceLocator will be
removed from the set of ServiceLocators.
|
void initialize(Set<ServiceLocator> initialLocators)
Any exceptions thrown from this method will be logged and ignored. If an exception is thrown from this method then this listener will NOT be added to the set of listeners notified by the system
initialLocators
- The set of named locators available when
the listener is registeredvoid locatorAdded(ServiceLocator added)
Any exceptions thrown from this method will be logged and ignored
added
- The non-null ServiceLocator that is to be addedvoid locatorDestroyed(ServiceLocator destroyed)
Any exceptions thrown from this method will be logged and ignored
destroyed
- The non-null ServiceLocator that is to be destroyedCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.