Package org.apache.geronimo.console.util

Examples of org.apache.geronimo.console.util.Tree


        ContainerSystemInfo systemInfo = configuration.containerSystem;
        Map<ContainerType, TreeEntry> containerMap = new TreeMap<ContainerType, TreeEntry>();
        List<ContainerInfo> containerInfos = systemInfo.containers;
        ContainerInfo containerInfo = null;
        TreeEntry containerTypesEntry, containersEntry, deploymentsEntry = null;
        Tree tree = new Tree("name", "name");
        List<TreeEntry> entries = new ArrayList<TreeEntry>();
        for (int i = 0; i < containerInfos.size(); i++) {

            containerInfo = containerInfos.get(i);
            container = containerSystem.getContainer(containerInfo.id);
            List<TreeEntry> containers = null;
            if (containerMap.get(container.getContainerType()) != null) {
                containerTypesEntry = containerMap.get(container.getContainerType());
                containers = containerTypesEntry.getChildren();
            } else {
                containerTypesEntry = new TreeEntry();
                containerTypesEntry.setName(resolveContainerTypes(container.getContainerType()));
                containerTypesEntry.setValues(new String[]{containerTypesEntry.getName()});
                containers = new ArrayList<TreeEntry>();
                containerTypesEntry.setChildren(containers);
                containerMap.put(container.getContainerType(),containerTypesEntry);
                entries.add(containerTypesEntry);
            }
            containersEntry = new TreeEntry();
            containersEntry.setName(containerInfo.id);
            containersEntry.setValues(new String[]{containerInfo.id});

            DeploymentInfo[] deployments = container.deployments();
            containersEntry.setChildren(getDeployments(deployments));
            containers.add(containersEntry);
        }
        tree.setItems(entries);
        return tree;
    }
View Full Code Here


        ContainerSystemInfo systemInfo = configuration.containerSystem;
        Map<ContainerType, TreeEntry> containerMap = new TreeMap<ContainerType, TreeEntry>();
        List<ContainerInfo> containerInfos = systemInfo.containers;
        ContainerInfo containerInfo = null;
        TreeEntry containerTypesEntry, containersEntry, deploymentsEntry = null;
        Tree tree = new Tree("name", "name");
        List<TreeEntry> entries = new ArrayList<TreeEntry>();
        for (int i = 0; i < containerInfos.size(); i++) {

            containerInfo = containerInfos.get(i);
            container = containerSystem.getContainer(containerInfo.id);
            List<TreeEntry> containers = null;
            if (containerMap.get(container.getContainerType()) != null) {
                containerTypesEntry = containerMap.get(container.getContainerType());
                containers = containerTypesEntry.getChildren();
            } else {
                containerTypesEntry = new TreeEntry();
                containerTypesEntry.setName(resolveContainerTypes(container.getContainerType()));
                containerTypesEntry.setValues(new String[]{containerTypesEntry.getName()});
                containers = new ArrayList<TreeEntry>();
                containerTypesEntry.setChildren(containers);
                containerMap.put(container.getContainerType(),containerTypesEntry);
                entries.add(containerTypesEntry);
            }
            containersEntry = new TreeEntry();
            containersEntry.setName(containerInfo.id);
            containersEntry.setValues(new String[]{containerInfo.id});

            BeanContext[] deployments = container.getBeanContexts();
            containersEntry.setChildren(getDeployments(deployments));
            containers.add(containersEntry);
        }
        tree.setItems(entries);
        return tree;
    }
View Full Code Here

        }
    }

    @RemoteMethod
    public static Tree getTrees(HttpSession session) {
        Tree dependencyTree = new Tree(null, "name");

        TreeEntry treeEAR = new TreeEntry("Enterprise Applications", NOT_LEAF_TYPE);
        dependencyTree.addItem(treeEAR);

        TreeEntry treeEJB = new TreeEntry("EJBModule", NOT_LEAF_TYPE);
        dependencyTree.addItem(treeEJB);

        TreeEntry treeWeb = new TreeEntry("WebModule", NOT_LEAF_TYPE);
        dependencyTree.addItem(treeWeb);

        TreeEntry treeRAR = new TreeEntry("ResourceAdapterModule", NOT_LEAF_TYPE);
        dependencyTree.addItem(treeRAR);

        TreeEntry treeCLI = new TreeEntry("AppClientModule", NOT_LEAF_TYPE);
        dependencyTree.addItem(treeCLI);

        TreeEntry treeSys = new TreeEntry("System Module", NOT_LEAF_TYPE);
        dependencyTree.addItem(treeSys);

        org.apache.geronimo.kernel.Kernel kernel = org.apache.geronimo.kernel.KernelRegistry.getSingleKernel();

        ConfigurationManager configManager = null;
        try {
          configManager = ConfigurationUtil.getConfigurationManager(kernel);
        } catch  (GBeanNotFoundException e) {
          // Ignore
        }

        List infos = configManager.listConfigurations();
        for (Iterator infoIterator = infos.iterator(); infoIterator.hasNext();) {
            ConfigurationInfo info = (ConfigurationInfo) infoIterator.next();
            Configuration conf = configManager.getConfiguration(info.getConfigID());
            if (conf != null) {
                TreeEntry curr = new TreeEntry(info.getConfigID().toString(), NORMAL_TYPE);
                switch (info.getType().getValue()) {
                case 0:// EAR
                {
                    treeEAR.addChild(curr);
                    break;
                }
                case 1:// EJB
                {
                    treeEJB.addChild(curr);
                    break;
                }
                case 2:// CAR
                {
                    treeCLI.addChild(curr);
                    break;
                }

                case 3:// RAR
                {
                    treeRAR.addChild(curr);
                    break;
                }
                case 4:// WAR
                {
                    treeWeb.addChild(curr);
                    break;
                }
                case 5:// SERVICE
                {
                    treeSys.addChild(curr);
                    break;
                }
                }

                addDependencies(curr, conf);

                if (info.getType().getValue() == ConfigurationModuleType.EAR.getValue()) {
                    TreeEntry nodeEJB = new TreeEntry("EJBModule", NOT_LEAF_TYPE);
                    curr.addChild(nodeEJB);

                    TreeEntry nodeWeb = new TreeEntry("WebModule", NOT_LEAF_TYPE);
                    curr.addChild(nodeWeb);

                    TreeEntry nodeRAR = new TreeEntry("ResourceAdapterModule", NOT_LEAF_TYPE);
                    curr.addChild(nodeRAR);

                    TreeEntry nodeCLI = new TreeEntry("AppClientModule", NOT_LEAF_TYPE);
                    curr.addChild(nodeCLI);

                    Map<String, String> query = new HashMap<String, String>();
                    query.put("j2eeType", "EJBModule");
                    query.put("J2EEApplication", info.getConfigID().toString());
                    Set<AbstractName> setEnt = kernel.listGBeans(new AbstractNameQuery(null, query));
                    for (AbstractName gb : setEnt) {
                        TreeEntry subCurr = new TreeEntry(info.getConfigID().getGroupId() + "/"
                                + info.getConfigID().getArtifactId() + "_" + gb.getNameProperty("name") + "/"
                                + info.getConfigID().getVersion() + "/" + info.getConfigID().getType(), NORMAL_TYPE);
                        nodeEJB.addChild(subCurr);
                        addDependencies(subCurr, configManager.getConfiguration(gb.getArtifact()));
                    }

                    Map<String, String> query1 = new HashMap<String, String>();
                    query1.put("j2eeType", "ResourceAdapterModule");
                    query1.put("J2EEApplication", info.getConfigID().toString());
                    Set<AbstractName> setEnt1 = kernel.listGBeans(new AbstractNameQuery(null, query1));

                    for (AbstractName gb : setEnt1) {
                        TreeEntry subCurr = new TreeEntry(info.getConfigID().getGroupId() + "/"
                                + info.getConfigID().getArtifactId() + "_" + gb.getNameProperty("name") + "/"
                                + info.getConfigID().getVersion() + "/" + info.getConfigID().getType(), NORMAL_TYPE);
                        nodeRAR.addChild(subCurr);
                        addDependencies(subCurr, configManager.getConfiguration(gb.getArtifact()));
                    }

                    for (Configuration config : conf.getChildren()) {
                        TreeEntry subCurr = new TreeEntry(config.getAbstractName().toString(), NORMAL_TYPE);
                        nodeWeb.addChild(subCurr);
                        addDependencies(subCurr, config);
                    }

                    for (Artifact name : conf.getOwnedConfigurations()) {
                        TreeEntry subCurr = new TreeEntry(name.toString(), NORMAL_TYPE);
                        nodeCLI.addChild(subCurr);
                        addDependencies(subCurr, configManager.getConfiguration(name));
                    }

                }

            }

        }

        TreeEntry treeRepo = new TreeEntry("Repository", NORMAL_TYPE);
        dependencyTree.addItem(treeRepo);
        J2EEServer server = (J2EEServer) session.getAttribute(DependencyViewPortlet.Server_Key);
        if (null == server) {
            logger.error("can not find expected J2EEServer object");
            treeRepo.addChild(new TreeEntry("Not found the content of repository", NORMAL_TYPE));// Ignore the error at client
            return dependencyTree;
        }
        session.removeAttribute(DependencyViewPortlet.Server_Key);
        ListableRepository[] repos = server.getRepositories();
        for (int i = 0; i < repos.length; i++) {
            ListableRepository repo = repos[i];
            final SortedSet artifacts = repo.list();
            for (Iterator iterator = artifacts.iterator(); iterator.hasNext();) {
                String fileName = iterator.next().toString();
                treeRepo.addChild(new TreeEntry(fileName, NORMAL_TYPE));
            }
        }
        check_no_child(dependencyTree.getItems());
        return dependencyTree;
    }
View Full Code Here

        }
    }

    @RemoteMethod
    public Tree getTrees() throws Exception {
        Tree jndiTree = new Tree(null, "name");

        List arryList = new ArrayList();
        Hashtable entApp = new Hashtable();

        TreeEntry treeGlobal = new TreeEntry("Global Context", NOT_LEAF_TYPE);
        jndiTree.addItem(treeGlobal);

        TreeEntry tree = new TreeEntry("Enterprise Applications", NOT_LEAF_TYPE);
        jndiTree.addItem(tree);

        TreeEntry treeMod = new TreeEntry("EJBModule", NOT_LEAF_TYPE);
        entApp.put("EJBModule", treeMod);
        jndiTree.addItem(treeMod);

        treeMod = new TreeEntry("WebModule", NOT_LEAF_TYPE);
        entApp.put("WebModule", treeMod);
        jndiTree.addItem(treeMod);

        treeMod = new TreeEntry("ResourceAdapterModule", NOT_LEAF_TYPE);
        entApp.put("ResourceAdapterModule", treeMod);
        jndiTree.addItem(treeMod);

        treeMod = new TreeEntry("AppClientModule", NOT_LEAF_TYPE);
        entApp.put("AppClientModule", treeMod);
        jndiTree.addItem(treeMod);

        org.apache.geronimo.kernel.Kernel kernel = org.apache.geronimo.kernel.KernelRegistry.getSingleKernel();

        Set setEnt = kernel.listGBeans(new org.apache.geronimo.gbean.AbstractNameQuery(null, Collections.EMPTY_MAP,
                org.apache.geronimo.j2ee.management.impl.J2EEApplicationImpl.class.getName()));
        Iterator iterator = setEnt.iterator();
        while (iterator.hasNext()) {
            org.apache.geronimo.gbean.AbstractName gb = (org.apache.geronimo.gbean.AbstractName) iterator.next();
            TreeEntry curr = new TreeEntry(gb.getNameProperty("name"), NORMAL_TYPE);
            tree.addChild(curr);
            entApp.put(gb.getNameProperty("name"), curr);

            TreeEntry temp = new TreeEntry("EJBModule", NOT_LEAF_TYPE);
            curr.addChild(temp);

            temp = new TreeEntry("WebModule", NOT_LEAF_TYPE);
            curr.addChild(temp);

            temp = new TreeEntry("ResourceAdapterModule", NOT_LEAF_TYPE);
            curr.addChild(temp);

            temp = new TreeEntry("AppClientModule", NOT_LEAF_TYPE);
            curr.addChild(temp);
        }
       
        Context globalContext = null;
        Set<AbstractName> names = kernel.listGBeans(new AbstractNameQuery(KernelContextGBean.class.getName()));
        for (AbstractName name : names) {
            String nameProperty = name.getNameProperty("name");
            if ("ResourceBindings".equals(nameProperty)) {
                globalContext = ((ResourceBinding) kernel.getGBean(name)).getContext();
            }
        }
       
        buildGlobal(treeGlobal, globalContext, "");
        buildEJBModule(kernel, jndiTree.getItems(), entApp);
        buildWebModule(kernel, jndiTree.getItems(), entApp);
        buildResourceModule(kernel, jndiTree.getItems(), entApp);
        buildAppClientModule(kernel, jndiTree.getItems(), entApp);

        check_no_child(jndiTree.getItems());
        return jndiTree;
    }
View Full Code Here

        //build "Search Results" node
        TreeEntry searchNodeEntry = new TreeEntry("Search Results", SEARCHNODE_TYPE);
        this.addPlaceholder(searchNodeEntry);
       
        //build the tree
        Tree tree = new Tree(null, "name");     //id = null means the id will be auto-generated
        tree.addItem(allMBeansEntry);
        tree.addItem(javaEEMBeansEntry);
        tree.addItem(geronimoMBeansEntry);   
        tree.addItem(geronimoServiceEntry);
        tree.addItem(statsProviderEntry);
        tree.addItem(searchNodeEntry);
        return tree;
    }
View Full Code Here

        ContainerSystemInfo systemInfo = configuration.containerSystem;
        Map<ContainerType, TreeEntry> containerMap = new TreeMap<ContainerType, TreeEntry>();
        List<ContainerInfo> containerInfos = systemInfo.containers;
        ContainerInfo containerInfo = null;
        TreeEntry containerTypesEntry, containersEntry, deploymentsEntry = null;
        Tree tree = new Tree("name", "name");
        List<TreeEntry> entries = new ArrayList<TreeEntry>();
        for (int i = 0; i < containerInfos.size(); i++) {

            containerInfo = containerInfos.get(i);
            container = containerSystem.getContainer(containerInfo.id);
            List<TreeEntry> containers = null;
            if (containerMap.get(container.getContainerType()) != null) {
                containerTypesEntry = containerMap.get(container.getContainerType());
                containers = containerTypesEntry.getChildren();
            } else {
                containerTypesEntry = new TreeEntry();
                containerTypesEntry.setName(resolveContainerTypes(container.getContainerType()));
                containerTypesEntry.setValues(new String[]{containerTypesEntry.getName()});
                containers = new ArrayList<TreeEntry>();
                containerTypesEntry.setChildren(containers);
                containerMap.put(container.getContainerType(),containerTypesEntry);
                entries.add(containerTypesEntry);
            }
            containersEntry = new TreeEntry();
            containersEntry.setName(containerInfo.id);
            containersEntry.setValues(new String[]{containerInfo.id});

            DeploymentInfo[] deployments = container.deployments();
            containersEntry.setChildren(getDeployments(deployments));
            containers.add(containersEntry);
        }
        tree.setItems(entries);
        return tree;
    }
View Full Code Here

        ContainerSystemInfo systemInfo = configuration.containerSystem;
        Map<ContainerType, TreeEntry> containerMap = new TreeMap<ContainerType, TreeEntry>();
        List<ContainerInfo> containerInfos = systemInfo.containers;
        ContainerInfo containerInfo = null;
        TreeEntry containerTypesEntry, containersEntry, deploymentsEntry = null;
        Tree tree = new Tree("name", "name");
        List<TreeEntry> entries = new ArrayList<TreeEntry>();
        for (int i = 0; i < containerInfos.size(); i++) {

            containerInfo = containerInfos.get(i);
            container = containerSystem.getContainer(containerInfo.id);
            List<TreeEntry> containers = null;
            if (containerMap.get(container.getContainerType()) != null) {
                containerTypesEntry = containerMap.get(container.getContainerType());
                containers = containerTypesEntry.getChildren();
            } else {
                containerTypesEntry = new TreeEntry();
                containerTypesEntry.setName(resolveContainerTypes(container.getContainerType()));
                containerTypesEntry.setValues(new String[]{containerTypesEntry.getName()});
                containers = new ArrayList<TreeEntry>();
                containerTypesEntry.setChildren(containers);
                containerMap.put(container.getContainerType(),containerTypesEntry);
                entries.add(containerTypesEntry);
            }
            containersEntry = new TreeEntry();
            containersEntry.setName(containerInfo.id);
            containersEntry.setValues(new String[]{containerInfo.id});

            DeploymentInfo[] deployments = container.deployments();
            containersEntry.setChildren(getDeployments(deployments));
            containers.add(containersEntry);
        }
        tree.setItems(entries);
        return tree;
    }
View Full Code Here

        }
    }

    @RemoteMethod
    public static Tree getTrees(HttpSession session) {
        Tree dependencyTree = new Tree(null, "name");

        TreeEntry treeEAR = new TreeEntry("Enterprise Applications", NOT_LEAF_TYPE);
        dependencyTree.addItem(treeEAR);

        TreeEntry treeEJB = new TreeEntry("EJBModule", NOT_LEAF_TYPE);
        dependencyTree.addItem(treeEJB);

        TreeEntry treeWeb = new TreeEntry("WebModule", NOT_LEAF_TYPE);
        dependencyTree.addItem(treeWeb);

        TreeEntry treeRAR = new TreeEntry("ResourceAdapterModule", NOT_LEAF_TYPE);
        dependencyTree.addItem(treeRAR);

        TreeEntry treeCLI = new TreeEntry("AppClientModule", NOT_LEAF_TYPE);
        dependencyTree.addItem(treeCLI);

        TreeEntry treeSys = new TreeEntry("System Module", NOT_LEAF_TYPE);
        dependencyTree.addItem(treeSys);

        org.apache.geronimo.kernel.Kernel kernel = org.apache.geronimo.kernel.KernelRegistry.getSingleKernel();

        ConfigurationManager configManager = ConfigurationUtil.getConfigurationManager(kernel);

        List infos = configManager.listConfigurations();
        for (Iterator infoIterator = infos.iterator(); infoIterator.hasNext();) {
            ConfigurationInfo info = (ConfigurationInfo) infoIterator.next();
            Configuration conf = configManager.getConfiguration(info.getConfigID());
            if (conf != null) {
                TreeEntry curr = new TreeEntry(info.getConfigID().toString(), NORMAL_TYPE);
                switch (info.getType().getValue()) {
                case 0:// EAR
                {
                    treeEAR.addChild(curr);
                    break;
                }
                case 1:// EJB
                {
                    treeEJB.addChild(curr);
                    break;
                }
                case 2:// CAR
                {
                    treeCLI.addChild(curr);
                    break;
                }

                case 3:// RAR
                {
                    treeRAR.addChild(curr);
                    break;
                }
                case 4:// WAR
                {
                    treeWeb.addChild(curr);
                    break;
                }
                case 5:// SERVICE
                {
                    treeSys.addChild(curr);
                    break;
                }
                }

                addDependencies(curr, conf);

                if (info.getType().getValue() == ConfigurationModuleType.EAR.getValue()) {
                    TreeEntry nodeEJB = new TreeEntry("EJBModule", NOT_LEAF_TYPE);
                    curr.addChild(nodeEJB);

                    TreeEntry nodeWeb = new TreeEntry("WebModule", NOT_LEAF_TYPE);
                    curr.addChild(nodeWeb);

                    TreeEntry nodeRAR = new TreeEntry("ResourceAdapterModule", NOT_LEAF_TYPE);
                    curr.addChild(nodeRAR);

                    TreeEntry nodeCLI = new TreeEntry("AppClientModule", NOT_LEAF_TYPE);
                    curr.addChild(nodeCLI);

                    Map<String, String> query = new HashMap<String, String>();
                    query.put("j2eeType", "EJBModule");
                    query.put("J2EEApplication", info.getConfigID().toString());
                    Set<AbstractName> setEnt = kernel.listGBeans(new AbstractNameQuery(null, query));
                    for (AbstractName gb : setEnt) {
                        TreeEntry subCurr = new TreeEntry(info.getConfigID().getGroupId() + "/"
                                + info.getConfigID().getArtifactId() + "_" + gb.getNameProperty("name") + "/"
                                + info.getConfigID().getVersion() + "/" + info.getConfigID().getType(), NORMAL_TYPE);
                        nodeEJB.addChild(subCurr);
                        addDependencies(subCurr, configManager.getConfiguration(gb.getArtifact()));
                    }

                    Map<String, String> query1 = new HashMap<String, String>();
                    query1.put("j2eeType", "ResourceAdapterModule");
                    query1.put("J2EEApplication", info.getConfigID().toString());
                    Set<AbstractName> setEnt1 = kernel.listGBeans(new AbstractNameQuery(null, query1));

                    for (AbstractName gb : setEnt1) {
                        TreeEntry subCurr = new TreeEntry(info.getConfigID().getGroupId() + "/"
                                + info.getConfigID().getArtifactId() + "_" + gb.getNameProperty("name") + "/"
                                + info.getConfigID().getVersion() + "/" + info.getConfigID().getType(), NORMAL_TYPE);
                        nodeRAR.addChild(subCurr);
                        addDependencies(subCurr, configManager.getConfiguration(gb.getArtifact()));
                    }

                    for (Configuration config : conf.getChildren()) {
                        TreeEntry subCurr = new TreeEntry(config.getAbstractName().toString(), NORMAL_TYPE);
                        nodeWeb.addChild(subCurr);
                        addDependencies(subCurr, config);
                    }

                    for (Artifact name : conf.getOwnedConfigurations()) {
                        TreeEntry subCurr = new TreeEntry(name.toString(), NORMAL_TYPE);
                        nodeCLI.addChild(subCurr);
                        addDependencies(subCurr, configManager.getConfiguration(name));
                    }

                }

            }

        }

        TreeEntry treeRepo = new TreeEntry("Repository", NORMAL_TYPE);
        dependencyTree.addItem(treeRepo);
        J2EEServer server = (J2EEServer) session.getAttribute(DependencyViewPortlet.Server_Key);
        if (null == server) {
            logger.error("can not find expected J2EEServer object");
            treeRepo.addChild(new TreeEntry("Not found the content of repository", NORMAL_TYPE));// Ignore the error at client
            return dependencyTree;
        }
        session.removeAttribute(DependencyViewPortlet.Server_Key);
        ListableRepository[] repos = server.getRepositories();
        for (int i = 0; i < repos.length; i++) {
            ListableRepository repo = repos[i];
            final SortedSet artifacts = repo.list();
            for (Iterator iterator = artifacts.iterator(); iterator.hasNext();) {
                String fileName = iterator.next().toString();
                treeRepo.addChild(new TreeEntry(fileName, NORMAL_TYPE));
            }
        }
        check_no_child(dependencyTree.getItems());
        return dependencyTree;
    }
View Full Code Here

        }
    }

    @RemoteMethod
    public Tree getTrees() throws Exception {
        Tree jndiTree = new Tree(null, "name");

        List arryList = new ArrayList();
        Hashtable entApp = new Hashtable();

        TreeEntry treeGlobal = new TreeEntry("Global Context", NOT_LEAF_TYPE);
        jndiTree.addItem(treeGlobal);
        buildGlobal(treeGlobal, org.apache.xbean.naming.global.GlobalContextManager.getGlobalContext(), "");

        TreeEntry tree = new TreeEntry("Enterprise Applications", NOT_LEAF_TYPE);
        jndiTree.addItem(tree);

        TreeEntry treeMod = new TreeEntry("EJBModule", NOT_LEAF_TYPE);
        entApp.put("EJBModule", treeMod);
        jndiTree.addItem(treeMod);

        treeMod = new TreeEntry("WebModule", NOT_LEAF_TYPE);
        entApp.put("WebModule", treeMod);
        jndiTree.addItem(treeMod);

        treeMod = new TreeEntry("ResourceAdapterModule", NOT_LEAF_TYPE);
        entApp.put("ResourceAdapterModule", treeMod);
        jndiTree.addItem(treeMod);

        treeMod = new TreeEntry("AppClientModule", NOT_LEAF_TYPE);
        entApp.put("AppClientModule", treeMod);
        jndiTree.addItem(treeMod);

        org.apache.geronimo.kernel.Kernel kernel = org.apache.geronimo.kernel.KernelRegistry.getSingleKernel();

        Set setEnt = kernel.listGBeans(new org.apache.geronimo.gbean.AbstractNameQuery(null, Collections.EMPTY_MAP,
                org.apache.geronimo.j2ee.management.impl.J2EEApplicationImpl.class.getName()));
        Iterator iterator = setEnt.iterator();
        while (iterator.hasNext()) {
            org.apache.geronimo.gbean.AbstractName gb = (org.apache.geronimo.gbean.AbstractName) iterator.next();
            TreeEntry curr = new TreeEntry(gb.getNameProperty("name"), NORMAL_TYPE);
            tree.addChild(curr);
            entApp.put(gb.getNameProperty("name"), curr);

            TreeEntry temp = new TreeEntry("EJBModule", NOT_LEAF_TYPE);
            curr.addChild(temp);

            temp = new TreeEntry("WebModule", NOT_LEAF_TYPE);
            curr.addChild(temp);

            temp = new TreeEntry("ResourceAdapterModule", NOT_LEAF_TYPE);
            curr.addChild(temp);

            temp = new TreeEntry("AppClientModule", NOT_LEAF_TYPE);
            curr.addChild(temp);
        }

        buildEJBModule(kernel, jndiTree.getItems(), entApp);
        buildWebModule(kernel, jndiTree.getItems(), entApp);
        buildResourceModule(kernel, jndiTree.getItems(), entApp);
        buildAppClientModule(kernel, jndiTree.getItems(), entApp);

        check_no_child(jndiTree.getItems());
        return jndiTree;
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.console.util.Tree

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.