Examples of StringPropertyValue


Examples of org.impalaframework.config.StringPropertyValue

        addNamedLocations(configSettings, propertySource, CoreBootstrapProperties.EXTRA_LOCATIONS);
    }

    private boolean addNamedLocations(ConfigurationSettings configSettings,
            PropertySource propertySource, final String propertyName) {
        StringPropertyValue allLocations = new StringPropertyValue(propertySource, propertyName, null);
        configSettings.addProperty(propertyName, allLocations);
       
        final String allLocationsValue = allLocations.getValue();
        if (allLocationsValue != null) {
            final String[] allLocationsArray = StringUtils.tokenizeToStringArray(allLocationsValue, " ,");
            final String[] fullNamesArray = getFullNames(allLocationsArray);
            for (String location : fullNamesArray) {
                configSettings.add(location);
View Full Code Here

Examples of org.impalaframework.config.StringPropertyValue

            configSettings.add("META-INF/impala-web-listener-bootstrap.xml");
   
            BooleanPropertyValue useTouchFile = new BooleanPropertyValue(propertySource, WebBootstrapProperties.USE_TOUCH_FILE, WebBootstrapProperties.USE_TOUCH_FILE_DEFAULT);
            configSettings.addProperty(WebBootstrapProperties.USE_TOUCH_FILE, useTouchFile);
           
            StringPropertyValue touchFile = new StringPropertyValue(propertySource, WebBootstrapProperties.TOUCH_FILE, WebBootstrapProperties.TOUCH_FILE_DEFAULT);
            configSettings.addProperty(WebBootstrapProperties.TOUCH_FILE, touchFile);
           
            IntPropertyValue delay = new IntPropertyValue(propertySource, WebBootstrapProperties.AUTO_RELOAD_CHECK_DELAY, WebBootstrapProperties.AUTO_RELOAD_CHECK_DELAY_DEFAULT);
            configSettings.addProperty(WebBootstrapProperties.AUTO_RELOAD_CHECK_DELAY, delay);
           
            IntPropertyValue interval = new IntPropertyValue(propertySource, WebBootstrapProperties.AUTO_RELOAD_CHECK_INTERVAL, WebBootstrapProperties.AUTO_RELOAD_CHECK_INTERVAL_DEFAULT);
            configSettings.addProperty(WebBootstrapProperties.AUTO_RELOAD_CHECK_INTERVAL, interval);
           
            StringPropertyValue monitoringType = new StringPropertyValue(propertySource, WebBootstrapProperties.AUTO_RELOAD_MONITORING_TYPE, WebBootstrapProperties.AUTO_RELOAD_MONITORING_TYPE_DEFAULT);
            configSettings.addProperty(WebBootstrapProperties.AUTO_RELOAD_MONITORING_TYPE, monitoringType);
        }
    }
View Full Code Here

Examples of org.impalaframework.config.StringPropertyValue

        configSettings.addProperty(WebBootstrapProperties.SPRING_PATH_MAPPING_ENABLED, pathMapperEnabled);
       
        if (pathMapperEnabled.getValue()) {
            configSettings.add("META-INF/impala-web-path-mapper-bootstrap.xml");
           
            StringPropertyValue webModulePrefix = new StringPropertyValue(propertySource, WebBootstrapProperties.WEB_MODULE_PREFIX, WebBootstrapProperties.WEB_MODULE_PREFIX_DEFAULT);
            StringPropertyValue topLevelModuleSuffixes = new StringPropertyValue(propertySource, WebBootstrapProperties.TOP_LEVEL_MODULE_SUFFIXES, WebBootstrapProperties.TOP_LEVEL_MODULE_SUFFIXES_DEFAULT);
           
            configSettings.addProperty(WebBootstrapProperties.WEB_MODULE_PREFIX, webModulePrefix);
            configSettings.addProperty(WebBootstrapProperties.TOP_LEVEL_MODULE_SUFFIXES, topLevelModuleSuffixes);
        }  
    }
View Full Code Here

Examples of org.impalaframework.config.StringPropertyValue

    private void logStandaloneProperties(ConfigurationSettings configSettings, PropertySource propertySource) {
        BooleanPropertyValue embeddedMode = new BooleanPropertyValue(propertySource, CoreBootstrapProperties.EMBEDDED_MODE, CoreBootstrapProperties.EMBEDDED_MODE_DEFAULT);
        //parentClassloaderFirst value is by default the opposite of embedded mode
        BooleanPropertyValue parentClassloaderFirst = new BooleanPropertyValue(propertySource, CoreBootstrapProperties.PARENT_CLASS_LOADER_FIRST, !embeddedMode.getValue());
        BooleanPropertyValue loadTimeWeavingEnabled = new BooleanPropertyValue(propertySource, CoreBootstrapProperties.LOAD_TIME_WEAVING_ENABLED, CoreBootstrapProperties.LOAD_TIME_WEAVING_ENABLED_DEFAULT);
        StringPropertyValue workspaceRoot = new StringPropertyValue(propertySource, CoreBootstrapProperties.WORKSPACE_ROOT, LocationConstants.WORKSPACE_ROOT_DEFAULT);
        StringPropertyValue moduleClassDirectory = new StringPropertyValue(propertySource, CoreBootstrapProperties.MODULE_CLASS_DIRECTORY, LocationConstants.MODULE_CLASS_DIR_DEFAULT);
        StringPropertyValue moduleResourceDirectory = new StringPropertyValue(propertySource, CoreBootstrapProperties.MODULE_RESOURCE_DIRECTORY, LocationConstants.MODULE_RESOURCE_DIR_DEFAULT);

        StringPropertyValue externalRootModuleName = new StringPropertyValue(propertySource, CoreBootstrapProperties.EXTERNAL_ROOT_MODULE_NAME, CoreBootstrapProperties.EXTERNAL_ROOT_MODULE_NAME_DEFAULT);
       
        configSettings.addProperty(CoreBootstrapProperties.PARENT_CLASS_LOADER_FIRST, parentClassloaderFirst);
        configSettings.addProperty(CoreBootstrapProperties.LOAD_TIME_WEAVING_ENABLED, loadTimeWeavingEnabled);
        configSettings.addProperty(CoreBootstrapProperties.WORKSPACE_ROOT, workspaceRoot);
        configSettings.addProperty(CoreBootstrapProperties.MODULE_CLASS_DIRECTORY, moduleClassDirectory);
View Full Code Here

Examples of org.impalaframework.config.StringPropertyValue

    }

    protected void addModuleType(ConfigurationSettings configSettings,  PropertySource propertySource) {
       
        //check the classloader type
        StringPropertyValue moduleType = new StringPropertyValue(propertySource, CoreBootstrapProperties.MODULE_TYPE, "graph");
        configSettings.addProperty(CoreBootstrapProperties.MODULE_TYPE, moduleType);
       
        final String value = moduleType.getValue();
        if ("shared".equalsIgnoreCase(value)) {
            configSettings.add("META-INF/impala-shared-loader-bootstrap.xml");
        } else if ("graph".equalsIgnoreCase(value)) {
            configSettings.add("META-INF/impala-graph-bootstrap.xml");
           
            StringPropertyValue allLocations = new StringPropertyValue(propertySource, CoreBootstrapProperties.GRAPH_BEAN_VISIBILITY_TYPE, CoreBootstrapProperties.GRAPH_BEAN_VISIBILITY_TYPE_DEFAULT);
            configSettings.addProperty(CoreBootstrapProperties.GRAPH_BEAN_VISIBILITY_TYPE, allLocations);
        } else if ("hierarchical".equalsIgnoreCase(value)) {
            //nothing to do here
        } else {
            throw new ConfigurationException("Invalid value for property 'classloader.type': " + value);
View Full Code Here

Examples of org.impalaframework.config.StringPropertyValue

        addNamedLocations(configSettings, propertySource, CoreBootstrapProperties.EXTRA_LOCATIONS);
    }

    private boolean addNamedLocations(ConfigurationSettings configSettings,
            PropertySource propertySource, final String propertyName) {
        StringPropertyValue allLocations = new StringPropertyValue(propertySource, propertyName, null);
        configSettings.addProperty(propertyName, allLocations);
       
        final String allLocationsValue = allLocations.getValue();
        if (allLocationsValue != null) {
            final String[] allLocationsArray = StringUtils.tokenizeToStringArray(allLocationsValue, " ,");
            final String[] fullNamesArray = getFullNames(allLocationsArray);
            for (String location : fullNamesArray) {
                configSettings.add(location);
View Full Code Here

Examples of org.impalaframework.config.StringPropertyValue

  private void logStandaloneProperties(ConfigurationSettings configSettings, PropertySource propertySource) {
    BooleanPropertyValue embeddedMode = new BooleanPropertyValue(propertySource, CoreBootstrapProperties.EMBEDDED_MODE, false);
    //parentClassloaderFirst value is by default the opposite of embedded mode
    BooleanPropertyValue parentClassloaderFirst = new BooleanPropertyValue(propertySource, CoreBootstrapProperties.PARENT_CLASS_LOADER_FIRST, !embeddedMode.getValue());
    StringPropertyValue workspaceRoot = new StringPropertyValue(propertySource, CoreBootstrapProperties.WORKSPACE_ROOT, "../");
    StringPropertyValue moduleClassDirectory = new StringPropertyValue(propertySource, CoreBootstrapProperties.MODULE_CLASS_DIRECTORY, "bin");
    StringPropertyValue moduleResourceDirectory = new StringPropertyValue(propertySource, CoreBootstrapProperties.MODULE_RESOURCE_DIRECTORY, "resources");

    configSettings.addProperty(CoreBootstrapProperties.PARENT_CLASS_LOADER_FIRST, parentClassloaderFirst);
    configSettings.addProperty(CoreBootstrapProperties.WORKSPACE_ROOT, workspaceRoot);
    configSettings.addProperty(CoreBootstrapProperties.MODULE_CLASS_DIRECTORY, moduleClassDirectory);
    configSettings.addProperty(CoreBootstrapProperties.MODULE_RESOURCE_DIRECTORY, moduleResourceDirectory);
View Full Code Here

Examples of org.impalaframework.config.StringPropertyValue

  }

  protected void addModuleType(ConfigurationSettings configSettings,  PropertySource propertySource) {
   
    //check the classloader type
    StringPropertyValue moduleType = new StringPropertyValue(propertySource, CoreBootstrapProperties.MODULE_TYPE, "graph");
    configSettings.addProperty(CoreBootstrapProperties.MODULE_TYPE, moduleType);
   
    final String value = moduleType.getValue();
    if ("shared".equalsIgnoreCase(value)) {
      configSettings.add("META-INF/impala-shared-loader-bootstrap.xml");
    } else if ("graph".equalsIgnoreCase(value)) {
      configSettings.add("META-INF/impala-graph-bootstrap.xml");
     
      StringPropertyValue allLocations = new StringPropertyValue(propertySource, CoreBootstrapProperties.GRAPH_BEAN_VISIBILITY_TYPE, "graphOrdered");
      configSettings.addProperty(CoreBootstrapProperties.GRAPH_BEAN_VISIBILITY_TYPE, allLocations);
    } else if ("hierarchical".equalsIgnoreCase(value)) {
      //nothing to do here
    } else {
      throw new ConfigurationException("Invalid value for property 'classloader.type': " + value);
View Full Code Here

Examples of org.impalaframework.config.StringPropertyValue

    addNamedLocations(configSettings, propertySource, CoreBootstrapProperties.EXTRA_LOCATIONS);
  }

  private boolean addNamedLocations(ConfigurationSettings configSettings,
      PropertySource propertySource, final String propertyName) {
    StringPropertyValue allLocations = new StringPropertyValue(propertySource, propertyName, null);
    configSettings.addProperty(propertyName, allLocations);
   
    final String allLocationsValue = allLocations.getValue();
    if (allLocationsValue != null) {
      final String[] allLocationsArray = StringUtils.tokenizeToStringArray(allLocationsValue, " ,");
      final String[] fullNamesArray = getFullNames(allLocationsArray);
      for (String location : fullNamesArray) {
        configSettings.add(location);
View Full Code Here

Examples of org.impalaframework.config.StringPropertyValue

            configSettings.add("META-INF/impala-web-listener-bootstrap.xml");
   
            BooleanPropertyValue useTouchFile = new BooleanPropertyValue(propertySource, WebBootstrapProperties.USE_TOUCH_FILE, WebBootstrapProperties.USE_TOUCH_FILE_DEFAULT);
            configSettings.addProperty(WebBootstrapProperties.USE_TOUCH_FILE, useTouchFile);
           
            StringPropertyValue touchFile = new StringPropertyValue(propertySource, WebBootstrapProperties.TOUCH_FILE, WebBootstrapProperties.TOUCH_FILE_DEFAULT);
            configSettings.addProperty(WebBootstrapProperties.TOUCH_FILE, touchFile);
           
            IntPropertyValue delay = new IntPropertyValue(propertySource, WebBootstrapProperties.AUTO_RELOAD_CHECK_DELAY, WebBootstrapProperties.AUTO_RELOAD_CHECK_DELAY_DEFAULT);
            configSettings.addProperty(WebBootstrapProperties.AUTO_RELOAD_CHECK_DELAY, delay);
           
            IntPropertyValue interval = new IntPropertyValue(propertySource, WebBootstrapProperties.AUTO_RELOAD_CHECK_INTERVAL, WebBootstrapProperties.AUTO_RELOAD_CHECK_INTERVAL_DEFAULT);
            configSettings.addProperty(WebBootstrapProperties.AUTO_RELOAD_CHECK_INTERVAL, interval);
           
            StringPropertyValue monitoringType = new StringPropertyValue(propertySource, WebBootstrapProperties.AUTO_RELOAD_MONITORING_TYPE, WebBootstrapProperties.AUTO_RELOAD_MONITORING_TYPE_DEFAULT);
            configSettings.addProperty(WebBootstrapProperties.AUTO_RELOAD_MONITORING_TYPE, monitoringType);
           
            if ("stagingDirectory".equals(monitoringType.getValue())) {
                StringPropertyValue stagingDirectory = new StringPropertyValue(propertySource, WebBootstrapProperties.AUTO_RELOAD_STAGING_DIRECTORY, WebBootstrapProperties.AUTO_RELOAD_STAGING_DIRECTORY_DEFAULT);
                configSettings.addProperty(WebBootstrapProperties.AUTO_RELOAD_STAGING_DIRECTORY, stagingDirectory);
            }
           
            StringPropertyValue fileIncludes = new StringPropertyValue(propertySource, WebBootstrapProperties.AUTO_RELOAD_FILE_INCLUDES, WebBootstrapProperties.AUTO_RELOAD_FILE_INCLUDES_DEFAULT);
            configSettings.addProperty(WebBootstrapProperties.AUTO_RELOAD_FILE_INCLUDES, fileIncludes);

            StringPropertyValue fileExcludes = new StringPropertyValue(propertySource, WebBootstrapProperties.AUTO_RELOAD_FILE_EXCLUDES, WebBootstrapProperties.AUTO_RELOAD_FILE_EXCLUDES_DEFAULT);
            configSettings.addProperty(WebBootstrapProperties.AUTO_RELOAD_FILE_EXCLUDES, fileExcludes);
        }
    }
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.