org.objectweb.jonas.web.jetty50.jmx
Class J2EEWebModuleMBean

java.lang.Object
  extended by org.mortbay.util.jmx.ModelMBeanImpl
      extended by org.objectweb.jonas.web.jetty50.jmx.J2EEWebModuleMBean
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBean, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster, javax.management.PersistentMBean

public class J2EEWebModuleMBean
extends org.mortbay.util.jmx.ModelMBeanImpl

Fake (at least not complete) implementation of the WebModule MBean. TODO for a full implementation, the MBean should be able to return a real ObjectName array for Servlets inside the WebApp.

Author:
Guillaume Sauthier

Field Summary
 
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
J2EEWebModuleMBean()
          Default public MBean Constructor
 
Method Summary
protected  void defineManagedResource()
           
 javax.management.ObjectName[] getServlets()
           
 void setServlets(javax.management.ObjectName[] servlets)
           
 javax.management.ObjectName uniqueObjectName(javax.management.MBeanServer mbeanServer, java.lang.String baseObjectName)
           
 
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
 

Constructor Detail

J2EEWebModuleMBean

public J2EEWebModuleMBean()
                   throws javax.management.MBeanException
Default public MBean Constructor

Throws:
javax.management.MBeanException - required by the spec
Method Detail

defineManagedResource

protected void defineManagedResource()
Overrides:
defineManagedResource in class org.mortbay.util.jmx.ModelMBeanImpl
See Also:
ModelMBeanImpl.defineManagedResource()

getServlets

public javax.management.ObjectName[] getServlets()
Returns:
Returns the servlets.

setServlets

public void setServlets(javax.management.ObjectName[] servlets)
Parameters:
servlets -

uniqueObjectName

public javax.management.ObjectName uniqueObjectName(javax.management.MBeanServer mbeanServer,
                                                    java.lang.String baseObjectName)
Overrides:
uniqueObjectName in class org.mortbay.util.jmx.ModelMBeanImpl
See Also:
Jsr77ServletHolderMBean.uniqueObjectName(javax.management.MBeanServer, java.lang.String)