org.objectweb.jonas.webapp.jonasadmin
Class MBeanTreeBuilder

java.lang.Object
  extended byorg.objectweb.jonas.webapp.jonasadmin.MBeanTreeBuilder
All Implemented Interfaces:
org.apache.webapp.admin.TreeBuilder

public class MBeanTreeBuilder
extends java.lang.Object
implements org.apache.webapp.admin.TreeBuilder

Implementation of TreeBuilder that adds the nodes required for administering the Jonas server.


Constructor Summary
MBeanTreeBuilder()
           
 
Method Summary
 void buildTree(org.apache.webapp.admin.TreeControl treeControl, org.apache.webapp.admin.ApplicationServlet servlet, javax.servlet.http.HttpServletRequest request)
          Add the required nodes to the specified treeControl instance.
protected  void getMBeanInfo(org.apache.webapp.admin.TreeControlNode nodeMBean, javax.management.ObjectName onMBean, MessageResources resources)
          Append nodes Attributes and Operations for a defined MBean.
protected  void getMBeans(org.apache.webapp.admin.TreeControlNode rootNode, MessageResources resources)
          Append nodes for all defined MBeans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanTreeBuilder

public MBeanTreeBuilder()
Method Detail

buildTree

public void buildTree(org.apache.webapp.admin.TreeControl treeControl,
                      org.apache.webapp.admin.ApplicationServlet servlet,
                      javax.servlet.http.HttpServletRequest request)
Add the required nodes to the specified treeControl instance.

Specified by:
buildTree in interface org.apache.webapp.admin.TreeBuilder
Parameters:
treeControl - The TreeControl to which we should add our nodes
servlet - The controller servlet for the admin application
request - The servlet request we are processing

getMBeans

protected void getMBeans(org.apache.webapp.admin.TreeControlNode rootNode,
                         MessageResources resources)
                  throws java.lang.Exception
Append nodes for all defined MBeans.

Parameters:
rootNode - Root node for the tree control
resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getMBeanInfo

protected void getMBeanInfo(org.apache.webapp.admin.TreeControlNode nodeMBean,
                            javax.management.ObjectName onMBean,
                            MessageResources resources)
                     throws java.lang.Exception
Append nodes Attributes and Operations for a defined MBean.

Parameters:
nodeMBean - The MBean node
onMBean - The MBean Object name
resources - Resource
Throws:
java.lang.Exception