org.jboss.system.filterfactory
Class MBeanServerNotificationFilterFactory
java.lang.Object
org.jboss.system.filterfactory.MBeanServerNotificationFilterFactory
- All Implemented Interfaces:
- NotificationFilterFactory
public class MBeanServerNotificationFilterFactory
- extends Object
- implements NotificationFilterFactory
Factory for MBeanServerNotificationFilter filters.
The produced filter is really meant for MBeanServerNotifications
emitted by the "JMImplementation:type=MBeanServerDelegate" MBean.
filters-in zero or more Notification types, and zero or more
ObjectNames (contained in the MBeanServerNotification), so
you need to explicitly enable both the types and the ObjectNames.
In a nutshell, you'll be able to receive registration and/or unregistration
notifications for selected ObjectNames (i.e. MBean instances)!
The passed filterConfig xml element fragment should look like:
...
...
Note: JMX.mbean yields both notifications:
JMX.mbean.registered
JMX.mbean.unregistered
- Version:
- $Revision: 1.1.2.2 $
- Author:
- Dimitris Andreadis
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENABLE_ELEMENT
public static final String ENABLE_ELEMENT
- the xml element and attribute supported by this factory
- See Also:
- Constant Field Values
ENABLE_TYPE_ATTRIBUTE
public static final String ENABLE_TYPE_ATTRIBUTE
- See Also:
- Constant Field Values
ENABLE_OBJECTNAME_ATTRIBUTE
public static final String ENABLE_OBJECTNAME_ATTRIBUTE
- See Also:
- Constant Field Values
MBeanServerNotificationFilterFactory
public MBeanServerNotificationFilterFactory()
- Default public CTOR (necessary)
createNotificationFilter
public javax.management.NotificationFilter createNotificationFilter(Element filterConfig)
throws Exception
- The actual filter factory implementation
- Specified by:
createNotificationFilter
in interface NotificationFilterFactory
- Parameters:
filterConfig
- the xml fragment to use for configuring the filter
- Returns:
- an initialized NotificationFilter
- Throws:
Exception
- in case the xml fragment cannot be parsed properly
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.