1 22 package org.jboss.console.plugins.helpers; 23 24 import org.jboss.console.manager.interfaces.ManageableResource; 25 import org.jboss.console.manager.interfaces.ResourceTreeNode; 26 import org.jboss.console.manager.interfaces.TreeNode; 27 import org.jboss.console.manager.interfaces.TreeNodeMenuEntry; 28 29 import javax.management.MBeanServer ; 30 import javax.management.ObjectInstance ; 31 32 47 public interface PluginContext 48 { 49 public String localizeUrl (String source); 50 51 public org.jboss.logging.Logger getLogger(); 52 53 public MBeanServer getLocalMBeanServer (); 54 public ObjectInstance [] getMBeansForClass (String scope, String className); 55 56 57 public TreeNode createTreeNode (String name, 58 String description, 59 String iconUrl, 60 String defaultUrl, 61 TreeNodeMenuEntry[] menuEntries, 62 TreeNode[] subNodes, 63 ResourceTreeNode[] subResNodes) throws Exception ; 64 65 public ResourceTreeNode createResourceNode (String name, 66 String description, 67 String iconUrl, 68 String defaultUrl, 69 TreeNodeMenuEntry[] menuEntries, 70 TreeNode[] subNodes, 71 ResourceTreeNode[] subResNodes, 72 String jmxObjectName, 73 String jmxClassName) throws Exception ; 74 75 public ResourceTreeNode createResourceNode (String name, 76 String description, 77 String iconUrl, 78 String defaultUrl, 79 TreeNodeMenuEntry[] menuEntries, 80 TreeNode[] subNodes, 81 ResourceTreeNode[] subResNodes, 82 ManageableResource resource) throws Exception ; 83 84 public TreeNodeMenuEntry[] createMenus (String [] content) throws Exception ; 85 86 public String encode (String source); 87 } 88 | Popular Tags |