Package org.apache.geronimo.console.util

Examples of org.apache.geronimo.console.util.StringTree.addChild()


                    }
                }
            } else if (classloader.getParent() != null) {
                StringTree parentNode = updateTree(classloader.getParent(),
                        parentNodes);
                parentNode.addChild(node);
            } else
                parentNodes.add(node);
        }
        return node;
    }
View Full Code Here


            node.addChild(classNames);
            node.addChild(interfaceNames);

            for (int i = 0; i < result.length; i++) {
                if (result[i].isInterface())
                    interfaceNames.addChild(result[i].toString());
                else
                    classNames.addChild(result[i].toString());
            }

            return node;
View Full Code Here

            return;
        StringTree dep = new StringTree("dependencies");
        curr.addChild(dep);
        for (Iterator iterator = conf.getDependencies().iterator(); iterator
                .hasNext();) {
            dep.addChild(iterator.next().toString());
        }
        for (Iterator iterator = conf.getServiceParents().iterator(); iterator
                .hasNext();) {
            Configuration config = (Configuration) iterator.next();
            dep.addChild(config.getId().toString());
View Full Code Here

            dep.addChild(iterator.next().toString());
        }
        for (Iterator iterator = conf.getServiceParents().iterator(); iterator
                .hasNext();) {
            Configuration config = (Configuration) iterator.next();
            dep.addChild(config.getId().toString());
        }
    }

    public static ArrayList getTrees(RenderRequest request) {
View Full Code Here

        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(fileName);
            }

        }

        return arryList;
View Full Code Here

            StringTree ejbModule = new StringTree(gb.getNameProperty("name"));

            if (gb.getNameProperty("J2EEApplication") == null
                    || gb.getNameProperty("J2EEApplication").equals("null")) {
                StringTree treeEnt = (StringTree) entApp.get("EJBModule");
                treeEnt.addChild(ejbModule);
            } else {
                StringTree treeEnt = (StringTree) entApp.get(gb
                        .getNameProperty("J2EEApplication"));
                treeEnt = treeEnt.findNode("EJBModule");
                treeEnt.addChild(ejbModule);
View Full Code Here

                treeEnt.addChild(ejbModule);
            } else {
                StringTree treeEnt = (StringTree) entApp.get(gb
                        .getNameProperty("J2EEApplication"));
                treeEnt = treeEnt.findNode("EJBModule");
                treeEnt.addChild(ejbModule);
            }
            Map queryEnt = new HashMap();
            StringTree entityBean = new StringTree("EntityBeans");
            ejbModule.addChild(entityBean);
            queryEnt.put("j2eeType", "EntityBean");
View Full Code Here

            StringTree webModule = new StringTree(gb.getNameProperty("name"));

            if (gb.getNameProperty("J2EEApplication") == null
                    || gb.getNameProperty("J2EEApplication").equals("null")) {
                StringTree treeEnt = (StringTree) entApp.get("WebModule");
                treeEnt.addChild(webModule);
            } else {
                StringTree treeEnt = (StringTree) entApp.get(gb
                        .getNameProperty("J2EEApplication"));
                treeEnt = treeEnt.findNode("WebModule");
                treeEnt.addChild(webModule);
View Full Code Here

                treeEnt.addChild(webModule);
            } else {
                StringTree treeEnt = (StringTree) entApp.get(gb
                        .getNameProperty("J2EEApplication"));
                treeEnt = treeEnt.findNode("WebModule");
                treeEnt.addChild(webModule);
            }

            Map map = (Map) kernel.getAttribute(gb, "componentContext");
            String[] servlets = (String[]) kernel.getAttribute(gb, "servlets");
View Full Code Here

                    }
                    if (jspNode == null) {
                        jspNode = new StringTree("JSP");
                        servletsNode.addChild(jspNode);
                    }
                    jspNode.addChild(new StringTree(servlet.substring(4)));
                } else if (!servlet.equals("jsp")) {
                    if (servletsNode == null) {
                        servletsNode = new StringTree("Servlets");
                        webModule.addChild(servletsNode);
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.