| java.lang.Object org.jboss.mx.notification.ListenerRegistry
ListenerRegistry | public class ListenerRegistry (Code) | | A notification listener registry.
For addition and removal, the registrations are deeply cloned to
allow the registrations to be iterated externally without
incurring the cost of synchronization.
See Also: org.jboss.mx.notification.ListenerRegistration author: Adrian Brock. author: Juha Lindfors. version: $Revision: 57200 $ version: Revisions: version: 20030806 Juha Lindfors: version: version: version: Added removeAll() version:
|
Inner Class :public class ListenerRegistrationIterator implements Iterator | |
ListenerRegistry | public ListenerRegistry()(Code) | | Create a notification listener registry using the default
listener registration factory.
|
ListenerRegistry | public ListenerRegistry(ListenerRegistrationFactory factory)(Code) | | Create a notification listener registry using the passed
listener registration factory.
Parameters: factory - the factory to create registrations, usenull for the default factory |
isEmpty | public boolean isEmpty()(Code) | | Test whether the registry is empty
true when it is empty, false otherwise |
iterator | public ListenerRegistrationIterator iterator()(Code) | | Retrieve an iterator over the registrations
The iterator behaves like a snapshot of the registrations
is taken during this operation.
the iterator |
removeAll | public void removeAll()(Code) | | Removes all listeners from this listener registry.
|
|
|