org.apache.felix.mosgi.jmx.agent.mx4j.server.interceptor
Class NotificationListenerMBeanServerInterceptor
java.lang.Object
org.apache.felix.mosgi.jmx.agent.mx4j.server.interceptor.DefaultMBeanServerInterceptor
org.apache.felix.mosgi.jmx.agent.mx4j.server.interceptor.NotificationListenerMBeanServerInterceptor
- All Implemented Interfaces:
- DefaultMBeanServerInterceptorMBean, MBeanServerInterceptor
public class NotificationListenerMBeanServerInterceptor
- extends DefaultMBeanServerInterceptor
Interceptor that takes care of replacing the source of Notifications to the
ObjectName of the NotificationBroadcaster that emitted it.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- Simone Bordet
Method Summary |
void |
addNotificationListener(MBeanMetaData metadata,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
Adds the given notification listener to the MBean, along with the given filter and handback |
String |
getType()
Returns the type of this interceptor |
void |
removeNotificationListener(MBeanMetaData metadata,
javax.management.NotificationListener listener)
Removes the given notification listener from the MBean. |
void |
removeNotificationListener(MBeanMetaData metadata,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
Removes the given notification listener from the MBean, specified by the given filter and handback. |
Methods inherited from class org.apache.felix.mosgi.jmx.agent.mx4j.server.interceptor.DefaultMBeanServerInterceptor |
getAttribute, getAttributes, getLogger, getMBeanInfo, getNext, instantiate, invoke, isEnabled, registration, setAttribute, setAttributes, setChain, setEnabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotificationListenerMBeanServerInterceptor
public NotificationListenerMBeanServerInterceptor()
getType
public String getType()
- Description copied from class:
DefaultMBeanServerInterceptor
- Returns the type of this interceptor
- Specified by:
getType
in interface DefaultMBeanServerInterceptorMBean
- Specified by:
getType
in interface MBeanServerInterceptor
- Specified by:
getType
in class DefaultMBeanServerInterceptor
addNotificationListener
public void addNotificationListener(MBeanMetaData metadata,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
- Description copied from interface:
MBeanServerInterceptor
- Adds the given notification listener to the MBean, along with the given filter and handback
- Specified by:
addNotificationListener
in interface MBeanServerInterceptor
- Overrides:
addNotificationListener
in class DefaultMBeanServerInterceptor
removeNotificationListener
public void removeNotificationListener(MBeanMetaData metadata,
javax.management.NotificationListener listener)
throws javax.management.ListenerNotFoundException
- Description copied from interface:
MBeanServerInterceptor
- Removes the given notification listener from the MBean.
- Specified by:
removeNotificationListener
in interface MBeanServerInterceptor
- Overrides:
removeNotificationListener
in class DefaultMBeanServerInterceptor
- Throws:
javax.management.ListenerNotFoundException
removeNotificationListener
public void removeNotificationListener(MBeanMetaData metadata,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
throws javax.management.ListenerNotFoundException
- Description copied from interface:
MBeanServerInterceptor
- Removes the given notification listener from the MBean, specified by the given filter and handback.
- Specified by:
removeNotificationListener
in interface MBeanServerInterceptor
- Overrides:
removeNotificationListener
in class DefaultMBeanServerInterceptor
- Throws:
javax.management.ListenerNotFoundException
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.