Example #1
0
 private void buildLayersNode(
     DefaultMutableTreeNode parent, Iterable<LayerDetailDescriptor> iter) {
   for (LayerDetailDescriptor descriptor : iter) {
     DefaultMutableTreeNode node = new DefaultMutableTreeNode(descriptor);
     buildModulesNode(node, descriptor.modules());
     parent.add(node);
   }
 }
  private Object findConfigurationDescriptor(
      ApplicationDetailDescriptor descriptor, Class<?> configType) {
    Object configDescriptor = null;
    for (LayerDetailDescriptor childDescriptor : descriptor.layers()) {
      Object obj = findInModules(childDescriptor.modules(), configType);
      if (obj != null) {
        configDescriptor = obj;
        break;
      }
    }

    return configDescriptor;
  }