org.objectweb.jonas.webapp.jonasadmin
Class MBeanTreeBuilder

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

public class MBeanTreeBuilder
extends java.lang.Object
implements TreeBuilder

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

Author:
Michel-Ange ANTON

Constructor Summary
MBeanTreeBuilder()
           
 
Method Summary
 void buildTree(TreeControl treeControl, ActionServlet servlet, javax.servlet.http.HttpServletRequest request)
          Add the required nodes to the specified treeControl instance.
protected  void getMBeanInfo(TreeControlNode nodeMBean, javax.management.ObjectName onMBean, MessageResources resources)
          Append nodes Attributes and Operations for a defined MBean.
 void getMBeans(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(TreeControl treeControl,
                      ActionServlet servlet,
                      javax.servlet.http.HttpServletRequest request)
Add the required nodes to the specified treeControl instance.

Specified by:
buildTree in interface 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

public void getMBeans(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(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