// 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()) {