org.jboss.system.filterfactory
Class MBeanServerNotificationFilterFactory

java.lang.Object
  extended by 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: 57205 $
Author:
Dimitris Andreadis

Field Summary
static String ENABLE_ELEMENT
          the xml element and attribute supported by this factory
static String ENABLE_OBJECTNAME_ATTRIBUTE
           
static String ENABLE_TYPE_ATTRIBUTE
           
 
Constructor Summary
MBeanServerNotificationFilterFactory()
          Default public CTOR (necessary)
 
Method Summary
 javax.management.NotificationFilter createNotificationFilter(Element filterConfig)
          The actual filter factory implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MBeanServerNotificationFilterFactory

public MBeanServerNotificationFilterFactory()
Default public CTOR (necessary)

Method Detail

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.