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;
  }
Exemplo n.º 2
0
 public MutableTreeNode build(ApplicationDetailDescriptor descriptor) {
   DefaultMutableTreeNode node = new DefaultMutableTreeNode(descriptor);
   buildLayersNode(node, descriptor.layers());
   return node;
 }