test_class.declarator: resolver = new PathMatchingResourcePatternResolver()
test_class.original_string: ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
test_class.type: ResourcePatternResolver
test_class.var_name: resolver
test_class.file: framework/spring/module/src/test/java/org/apache/cloudstack/spring/module/model/impl/DefaultModuleDefinitionTest.java
test_class.identifier: DefaultModuleDefinitionTest
test_case.body: @Test
      public void testWrongName() {
          DefaultModuleDefinition def = createDef("wrongname");
  
          try {
              def.init();
              fail();
          } catch (IOException e) {
              assertTrue(e.getMessage().contains("do not appear to be the same resource"));
          }
      }
test_case.class_method_signature: DefaultModuleDefinitionTest.testWrongName()
test_case.full_signature: @Test public void testWrongName()
test_case.identifier: testWrongName
test_case.invocations: createDef init fail assertTrue contains getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWrongName()
focal_class.declarator: NAME = "name"
focal_class.modifier: public static final
focal_class.original_string: public static final String NAME = "name";
focal_class.type: String
focal_class.var_name: NAME
focal_class.declarator: PARENT = "parent"
focal_class.modifier: public static final
focal_class.original_string: public static final String PARENT = "parent";
focal_class.type: String
focal_class.var_name: PARENT
focal_class.declarator: name
focal_class.original_string: String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: baseDir
focal_class.original_string: String baseDir;
focal_class.type: String
focal_class.var_name: baseDir
focal_class.declarator: parent
focal_class.original_string: String parent;
focal_class.type: String
focal_class.var_name: parent
focal_class.declarator: moduleProperties
focal_class.original_string: Resource moduleProperties;
focal_class.type: Resource
focal_class.var_name: moduleProperties
focal_class.declarator: resolver
focal_class.original_string: ResourcePatternResolver resolver;
focal_class.type: ResourcePatternResolver
focal_class.var_name: resolver
focal_class.declarator: valid
focal_class.original_string: boolean valid;
focal_class.type: boolean
focal_class.var_name: valid
focal_class.declarator: configLocations
focal_class.original_string: List<Resource> configLocations;
focal_class.type: List<Resource>
focal_class.var_name: configLocations
focal_class.declarator: contextLocations
focal_class.original_string: List<Resource> contextLocations;
focal_class.type: List<Resource>
focal_class.var_name: contextLocations
focal_class.declarator: inheritableContextLocations
focal_class.original_string: List<Resource> inheritableContextLocations;
focal_class.type: List<Resource>
focal_class.var_name: inheritableContextLocations
focal_class.declarator: overrideContextLocations
focal_class.original_string: List<Resource> overrideContextLocations;
focal_class.type: List<Resource>
focal_class.var_name: overrideContextLocations
focal_class.declarator: children = new TreeMap<String, ModuleDefinition>()
focal_class.original_string: Map<String, ModuleDefinition> children = new TreeMap<String, ModuleDefinition>();
focal_class.type: Map<String, ModuleDefinition>
focal_class.var_name: children
focal_class.file: framework/spring/module/src/main/java/org/apache/cloudstack/spring/module/model/impl/DefaultModuleDefinition.java
focal_class.identifier: DefaultModuleDefinition
focal_class.interfaces: implements ModuleDefinition
focal_class.class_method_signature: DefaultModuleDefinition.DefaultModuleDefinition(String baseDir, Resource moduleProperties, ResourcePatternResolver resolver)
focal_class.full_signature: public  DefaultModuleDefinition(String baseDir, Resource moduleProperties, ResourcePatternResolver resolver)
focal_class.identifier: DefaultModuleDefinition
focal_class.modifiers: public
focal_class.parameters: (String baseDir, Resource moduleProperties, ResourcePatternResolver resolver)
focal_class.signature:  DefaultModuleDefinition(String baseDir, Resource moduleProperties, ResourcePatternResolver resolver)
focal_class.class_method_signature: DefaultModuleDefinition.init()
focal_class.full_signature: public void init()
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: DefaultModuleDefinition.resolveNameAndParent()
focal_class.full_signature: protected void resolveNameAndParent()
focal_class.identifier: resolveNameAndParent
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resolveNameAndParent()
focal_class.class_method_signature: DefaultModuleDefinition.checkNameMatchesSelf()
focal_class.full_signature: protected void checkNameMatchesSelf()
focal_class.identifier: checkNameMatchesSelf
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkNameMatchesSelf()
focal_class.class_method_signature: DefaultModuleDefinition.location()
focal_class.full_signature: private String location()
focal_class.identifier: location
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String location()
focal_class.class_method_signature: DefaultModuleDefinition.addChild(ModuleDefinition def)
focal_class.full_signature: @Override public void addChild(ModuleDefinition def)
focal_class.identifier: addChild
focal_class.modifiers: @Override public
focal_class.parameters: (ModuleDefinition def)
focal_class.return: void
focal_class.signature: void addChild(ModuleDefinition def)
focal_class.class_method_signature: DefaultModuleDefinition.getChildren()
focal_class.full_signature: @Override public Collection<ModuleDefinition> getChildren()
focal_class.identifier: getChildren
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Collection<ModuleDefinition>
focal_class.signature: Collection<ModuleDefinition> getChildren()
focal_class.class_method_signature: DefaultModuleDefinition.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: DefaultModuleDefinition.getParentName()
focal_class.full_signature: @Override public String getParentName()
focal_class.identifier: getParentName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getParentName()
focal_class.class_method_signature: DefaultModuleDefinition.getConfigLocations()
focal_class.full_signature: @Override public List<Resource> getConfigLocations()
focal_class.identifier: getConfigLocations
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Resource>
focal_class.signature: List<Resource> getConfigLocations()
focal_class.class_method_signature: DefaultModuleDefinition.getContextLocations()
focal_class.full_signature: @Override public List<Resource> getContextLocations()
focal_class.identifier: getContextLocations
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Resource>
focal_class.signature: List<Resource> getContextLocations()
focal_class.class_method_signature: DefaultModuleDefinition.getInheritableContextLocations()
focal_class.full_signature: @Override public List<Resource> getInheritableContextLocations()
focal_class.identifier: getInheritableContextLocations
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Resource>
focal_class.signature: List<Resource> getInheritableContextLocations()
focal_class.class_method_signature: DefaultModuleDefinition.getOverrideContextLocations()
focal_class.full_signature: @Override public List<Resource> getOverrideContextLocations()
focal_class.identifier: getOverrideContextLocations
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Resource>
focal_class.signature: List<Resource> getOverrideContextLocations()
focal_class.class_method_signature: DefaultModuleDefinition.isValid()
focal_class.full_signature: @Override public boolean isValid()
focal_class.identifier: isValid
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isValid()
focal_class.class_method_signature: DefaultModuleDefinition.getClassLoader()
focal_class.full_signature: @Override public ClassLoader getClassLoader()
focal_class.identifier: getClassLoader
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ClassLoader
focal_class.signature: ClassLoader getClassLoader()
focal_method.body: public void init() throws IOException {
  
          if (!moduleProperties.exists()) {
              return;
          }
  
          resolveNameAndParent();
  
          contextLocations = Arrays.asList(resolver.getResources(ModuleLocationUtils.getContextLocation(baseDir, name)));
          configLocations = Arrays.asList(resolver.getResources(ModuleLocationUtils.getDefaultsLocation(baseDir, name)));
          inheritableContextLocations = Arrays.asList(resolver.getResources(ModuleLocationUtils.getInheritableContextLocation(baseDir, name)));
          overrideContextLocations = Arrays.asList(resolver.getResources(ModuleLocationUtils.getOverrideContextLocation(baseDir, name)));
  
          valid = true;
      }
focal_method.class_method_signature: DefaultModuleDefinition.init()
focal_method.full_signature: public void init()
focal_method.identifier: init
focal_method.invocations: exists resolveNameAndParent asList getResources getContextLocation asList getResources getDefaultsLocation asList getResources getInheritableContextLocation asList getResources getOverrideContextLocation
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void init()