|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mx.notification.MBeanServerListenerRegistry
A notification listener registry per ObjectName.
Revisions:
20030806 Juha Lindfors:
| Constructor Summary | |
MBeanServerListenerRegistry()
Create a notification listener registry |
|
| Method Summary | |
void |
add(ObjectName name,
NotificationBroadcaster broadcaster,
NotificationListener listener,
NotificationFilter filter,
Object handback)
Adds a listener to the mbean |
void |
remove(ObjectName name)
Removes all registrations for an mbean broadcaster. |
void |
remove(ObjectName name,
NotificationListener listener)
Removes all registrations for a listener. |
void |
remove(ObjectName name,
NotificationListener listener,
NotificationFilter filter,
Object handback)
Removes only the registrations for a listener that match the filter and handback. |
void |
removeAll()
Clears all listener registries from this registry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MBeanServerListenerRegistry()
| Method Detail |
public void add(ObjectName name, NotificationBroadcaster broadcaster, NotificationListener listener, NotificationFilter filter, Object handback)
name - the object namebroadcaster - the broadcasterlistener - the listener to registerfilter - filters the notifications in the broadcaster, can be nullhandback - the object to include in the notification, can be null
IllegalArgumentException - for a null object name or listenerpublic void remove(ObjectName name)
name - the object name
IllegalArgumentException - for a null object namepublic void remove(ObjectName name, NotificationListener listener) throws ListenerNotFoundException
name - the object namelistener - the listener to remove
ListenerNotFoundException - when the listener is not registered
IllegalArgumentException - for a null object namepublic void remove(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
name - the object namelistener - the listener to removefilter - the filter of the registration to removehandback - the handback object of the registration to remove
ListenerNotFoundException - when the listener is not registered
IllegalArgumentException - for a null object namepublic void removeAll()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||