org.jboss.system.filterfactory
Class DeploymentInfoNotificationFilterFactory
java.lang.Object
org.jboss.system.filterfactory.DeploymentInfoNotificationFilterFactory
- All Implemented Interfaces:
- NotificationFilterFactory
public class DeploymentInfoNotificationFilterFactory
- extends Object
- implements NotificationFilterFactory
Factory for DeploymentInfoNotificationFilterFactory.DeploymentInfoNotificationFilter
filters.
(check the inner class).
The produced filter is really meant for Notifications
emitted by SubDeployers. The types of interest are:
org.jboss.deployment.SubDeployer.init
org.jboss.deployment.SubDeployer.create
org.jboss.deployment.SubDeployer.start
org.jboss.deployment.SubDeployer.stop
org.jboss.deployment.SubDeployer.destroy
The above subdeployer notifications carry a DeploymentInfo
instance in their UserData. We can further filter based on
DeploymentInfo.shortName, but is important to explicitly
enable both the notification types and the desired shortNames.
In practice, you'll be able to receive notifications when a
particular deployment unit (e.g. my-app.ear) gets processed
(e.g. started, stopped, etc.) by a subdeployer.
The passed filterConfig xml element fragment should look like:
...
...
Note: org.jboss.deployment.SubDeployer yields all five
SubDeployer notifications.
- Since:
- 4.0.3
- 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_SHORTNAME_ATTRIBUTE
public static final String ENABLE_SHORTNAME_ATTRIBUTE
- See Also:
- Constant Field Values
DeploymentInfoNotificationFilterFactory
public DeploymentInfoNotificationFilterFactory()
- 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.