org.mortbay.jetty.servlet.jmx
Class ConfigurationMBean

java.lang.Object
  extended by org.mortbay.util.jmx.ModelMBeanImpl
      extended by org.mortbay.jetty.servlet.jmx.ConfigurationMBean
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBean, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster, javax.management.PersistentMBean
Direct Known Subclasses:
JettyWebConfigurationMBean, XMLConfigurationMBean

public class ConfigurationMBean
extends ModelMBeanImpl

ConfigurationMBean MBean proxy for a WebApplicationContext.Configuration object.

Version:
$Revision: 1.2 $ $Date: 2005/08/13 00:01:27 $
Author:
janb

Field Summary
protected  WebApplicationContext.Configuration _config
           
 
Fields inherited from class org.mortbay.util.jmx.ModelMBeanImpl
_beanInfo, IMPACT_ACTION, IMPACT_ACTION_INFO, IMPACT_INFO, IMPACT_UNKOWN, INT, NO_PARAMS, OBJECT, ON_MBEAN, ON_OBJECT, READ_ONLY, READ_WRITE, STRING
 
Constructor Summary
ConfigurationMBean()
           
 
Method Summary
protected  void defineManagedResource()
          defineManagedResource Grab the object which this mbean is proxying for, which in this case is an org.mortbay.jetty.servlet.WebApplicationContext.Configuration
 java.lang.String getName()
          getName This method is only defined to satisfy JMX: it is non-compliant to have an mbean with no methods on it, so this method has been added as a workaround.
 javax.management.ObjectName uniqueObjectName(javax.management.MBeanServer server, java.lang.String on)
          uniqueObjectName Make a unique jmx name for this configuration object
 
Methods inherited from class org.mortbay.util.jmx.ModelMBeanImpl
addAttributeChangeNotificationListener, addNotificationListener, defineAttribute, defineAttribute, defineAttribute, defineAttribute, defineOperation, defineOperation, defineOperation, defineOperation, destroyComponentMBeans, getAttribute, getAttributes, getBaseObjectName, getComponentMBeans, getDefaultDomain, getManagedResource, getMBeanInfo, getMBeanServer, getNotificationInfo, getObjectName, invoke, load, mbeanFor, newObjectName, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setBaseObjectName, setDefaultDomain, setManagedResource, setModelMBeanInfo, store, uniqueObjectName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_config

protected WebApplicationContext.Configuration _config
Constructor Detail

ConfigurationMBean

public ConfigurationMBean()
                   throws javax.management.MBeanException
Throws:
javax.management.MBeanException
Method Detail

defineManagedResource

protected void defineManagedResource()
defineManagedResource Grab the object which this mbean is proxying for, which in this case is an org.mortbay.jetty.servlet.WebApplicationContext.Configuration

Overrides:
defineManagedResource in class ModelMBeanImpl
See Also:
ModelMBeanImpl.defineManagedResource()

getName

public java.lang.String getName()
getName This method is only defined to satisfy JMX: it is non-compliant to have an mbean with no methods on it, so this method has been added as a workaround.

Returns:
classname of the Configuration instance

uniqueObjectName

public javax.management.ObjectName uniqueObjectName(javax.management.MBeanServer server,
                                                    java.lang.String on)
uniqueObjectName Make a unique jmx name for this configuration object

Overrides:
uniqueObjectName in class ModelMBeanImpl
Returns:
objectName with id= class.
See Also:
ModelMBeanImpl.uniqueObjectName(javax.management.MBeanServer, java.lang.String)


Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.