Package org.impalaframework.module

Examples of org.impalaframework.module.TypeReader.readModuleDefinition()


  protected ModuleDefinition buildModuleDefinition(
      ModuleDefinition parentDefinition, String moduleName) {
    Properties properties = moduleProperties.get(moduleName);
    String type = getType(properties);
    TypeReader reader = typeReadeRegistry.getTypeReader(type);
    ModuleDefinition definition = reader.readModuleDefinition(parentDefinition, moduleName, properties);
    definition.setParentDefinition(parentDefinition);
    return definition;
  }

  /**
 
View Full Code Here


     
      String name = getName(definitionElement);
      String type = getType(definitionElement);
     
      TypeReader typeReader = typeReaderRegistry.getTypeReader(type);
      ModuleDefinition childDefinition = typeReader.readModuleDefinition(parentDefinition, name, definitionElement);
     
      if (parentDefinition == null) {
        //no parent definition is null, this must be the case where the siblings
        rootModuleDefinition.addSibling(childDefinition);
      }
View Full Code Here

  }

  private RootModuleDefinition getRootModuleDefinition(Element root) {
    TypeReader typeReader = typeReaderRegistry.getTypeReader(ModuleTypes.ROOT);
    String name = getName(root);
    return (RootModuleDefinition) typeReader.readModuleDefinition(null, name, root);
  }

}
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.