org.jboss.mx.notification
Class MBeanServerListenerRegistration
java.lang.Object
org.jboss.mx.notification.DefaultListenerRegistration
org.jboss.mx.notification.MBeanServerListenerRegistration
- All Implemented Interfaces:
- ListenerRegistration
public class MBeanServerListenerRegistration
- extends DefaultListenerRegistration
The notification listener registration for a listener in
the mbeanserver. The listener is proxied so we can
replace the source of the notification with the object name.
We also handle the registration with the broadcaster.
- Version:
- $Revision: 81022 $
- Author:
- Adrian Brock.
- See Also:
ListenerRegistry
,
ListenerRegistrationFactory
MBeanServerListenerRegistration
public MBeanServerListenerRegistration(ObjectName name,
NotificationBroadcaster broadcaster,
NotificationListener listener,
NotificationFilter filter,
Object handback)
- Create a listener registration
- Parameters:
name
- the object name to use as the notifiation sourcebroadcaster
- the notification broadcasterlistener
- the notification listenerfilter
- the notification filterhandback
- the handback object a
getListener
public NotificationListener getListener()
- Specified by:
getListener
in interface ListenerRegistration
- Overrides:
getListener
in class DefaultListenerRegistration
getFilter
public NotificationFilter getFilter()
- Specified by:
getFilter
in interface ListenerRegistration
- Overrides:
getFilter
in class DefaultListenerRegistration
removed
public void removed()
- Specified by:
removed
in interface ListenerRegistration
- Overrides:
removed
in class DefaultListenerRegistration
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.