Package org.impalaframework.module.type

Examples of org.impalaframework.module.type.TypeReader


      if (properties == null) {
        throw new ConfigurationException("Resource '" + getResource() + "' contains no new properties for module '" + name +
            "'. Has this module been declared in the '" + ModuleElementNames.NAMES_ELEMENT + "' element?");
      }
     
      TypeReader typeReader = TypeReaderUtils.getTypeReader(typeReaders, type);
      typeReader.readModuleDefinitionProperties(properties, name, definitionElement);
    }
  }
View Full Code Here


    this.children = children;
  }

  public RootModuleDefinition getModuleDefinition() {
    Properties rootModuleProperties = getPropertiesForModule(rootModuleName);
    TypeReader typeReader = TypeReaderUtils.getTypeReader(getTypeReaders(), ModuleTypes.ROOT);
    RootModuleDefinition rootModuleDefinition = readRootModuleDefinition(rootModuleProperties, typeReader);
   
    //recursively build child definitions
    buildChildDefinitions(rootModuleDefinition, rootModuleName);
    return rootModuleDefinition;
View Full Code Here

    for (Element definitionElement : definitionElementList) {
     
      String name = getName(definitionElement);
      String type = getType(definitionElement);
     
      TypeReader typeReader = TypeReaderUtils.getTypeReader(typeReaders, type);
      ModuleDefinition childDefinition = typeReader.readModuleDefinition(parentDefinition, name, definitionElement);

      readChildDefinitions(childDefinition, definitionElement);
    }
  }
View Full Code Here

      readChildDefinitions(childDefinition, definitionElement);
    }
  }

  private RootModuleDefinition getRootModuleDefinition(Element root) {
    TypeReader typeReader = TypeReaderUtils.getTypeReader(typeReaders, ModuleTypes.ROOT);
    return (RootModuleDefinition) typeReader.readModuleDefinition(null, null, root);
  }
View Full Code Here

  protected ModuleDefinition buildModuleDefinition(
      ModuleDefinition parentDefinition, String moduleName) {
    Properties properties = moduleProperties.get(moduleName);
    String type = getType(properties);
    TypeReader reader = TypeReaderUtils.getTypeReader(typeReaders, type);
    ModuleDefinition definition = reader.readModuleDefinition(parentDefinition, moduleName, properties);
    definition.setParentDefinition(parentDefinition);
    return definition;
  }
View Full Code Here

TOP

Related Classes of org.impalaframework.module.type.TypeReader

Copyright © 2018 www.massapicom. 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.