public interface RegistrationListener
Modifier and Type | Method and Description |
---|---|
void |
notify(String layer,
String appContext)
Notify the listener that a registration with which it was
associated was replaced or unregistered.
|
void notify(String layer, String appContext)
When a RegistrationListener is associated with a provider
registration within the factory, the factory must call its
notify
method when the corresponding registration
is unregistered or replaced.
layer
- A String identifying the one or more message layers
corresponding to the registration for which the listerner is being
notified.appContext
- A String value identifying the application
contexts corresponding to the registration for which the listener is
being notified.
The factory detaches the listener from the corresponding
registration once the listener has been notified for the
registration.
The detachListerner
method
must be called to detach listeners that are no longer in use.Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.