Examples of BooleanPropertyValue


Examples of org.impalaframework.config.BooleanPropertyValue

      configSettings.add("META-INF/impala-web-listener-bootstrap.xml");
    }
  }

  protected void addPathModuleMapper(ConfigurationSettings configSettings, PropertySource propertySource) {
    BooleanPropertyValue pathMapperEnabled = new BooleanPropertyValue(propertySource, WebBootstrapProperties.SPRING_PATH_MAPPING_ENABLED, false);
    configSettings.addProperty(WebBootstrapProperties.SPRING_PATH_MAPPING_ENABLED, pathMapperEnabled);
   
    if (pathMapperEnabled.getValue()) {
      configSettings.add("META-INF/impala-web-path-mapper-bootstrap.xml");
     
      BooleanPropertyValue webModulePrefix = new BooleanPropertyValue(propertySource, WebBootstrapProperties.WEB_MODULE_PREFIX, false);
      BooleanPropertyValue topLevelModuleSuffixes = new BooleanPropertyValue(propertySource, WebBootstrapProperties.TOP_LEVEL_MODULE_SUFFIXES, true);
     
      configSettings.addProperty(WebBootstrapProperties.WEB_MODULE_PREFIX, webModulePrefix);
      configSettings.addProperty(WebBootstrapProperties.TOP_LEVEL_MODULE_SUFFIXES, topLevelModuleSuffixes);
   
  }
View Full Code Here

Examples of org.impalaframework.config.BooleanPropertyValue

  }

  boolean getPreserveSession() {
    final PropertySource propertySource = PropertySourceHolder.getInstance().getPropertySource();
    if (propertySource == null) return true;
    BooleanPropertyValue preserveSessionOnReloadFailure = new BooleanPropertyValue(propertySource, WebBootstrapProperties.PRESERVE_SESSION_ON_RELOAD_FAILURE, true);
   
    final boolean preserveSession = preserveSessionOnReloadFailure.getValue();
    return preserveSession;
  }
View Full Code Here

Examples of org.impalaframework.config.BooleanPropertyValue

    }

    boolean getPreserveSession() {
        final PropertySource propertySource = PropertySourceHolder.getInstance().getPropertySource();
        if (propertySource == null) return true;
        BooleanPropertyValue preserveSessionOnReloadFailure = new BooleanPropertyValue(propertySource, WebBootstrapProperties.PRESERVE_SESSION_ON_RELOAD_FAILURE, true);
       
        final boolean preserveSession = preserveSessionOnReloadFailure.getValue();
        return preserveSession;
    }
View Full Code Here

Examples of org.impalaframework.config.BooleanPropertyValue

    }

    protected void addProxyProperties(ConfigurationSettings configSettings,
            PropertySource propertySource) {
       
        BooleanPropertyValue proxyAllowNoService = new BooleanPropertyValue(propertySource, CoreBootstrapProperties.PROXY_ALLOW_NO_SERVICE, CoreBootstrapProperties.PROXY_ALLOW_NO_SERVICE_DEFAULT);
        BooleanPropertyValue proxySetContextClassLoader = new BooleanPropertyValue(propertySource, CoreBootstrapProperties.PROXY_SET_CONTEXT_CLASSLOADER, CoreBootstrapProperties.PROXY_SET_CONTEXT_CLASSLOADER_DEFAULT);
        IntPropertyValue proxyRetryCount = new IntPropertyValue(propertySource, CoreBootstrapProperties.PROXY_MISSING_SERVICE_RETRY_COUNT, CoreBootstrapProperties.PROXY_MISSING_SERVICE_RETRY_COUNT_DEFAULT);
        IntPropertyValue proxyRetryInterval = new IntPropertyValue(propertySource, CoreBootstrapProperties.PROXY_MISSING_SERVICE_RETRY_INTERVAL, CoreBootstrapProperties.PROXY_MISSING_SERVICE_RETRY_INTERVAL_DEFAULT);
       
        configSettings.addProperty(CoreBootstrapProperties.PROXY_ALLOW_NO_SERVICE, proxyAllowNoService);
        configSettings.addProperty(CoreBootstrapProperties.PROXY_SET_CONTEXT_CLASSLOADER, proxySetContextClassLoader);
View Full Code Here

Examples of org.impalaframework.config.BooleanPropertyValue

       
        maybeAddJmxLocations(configSettings, propertySource);
    }

    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());
        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);
View Full Code Here

Examples of org.impalaframework.config.BooleanPropertyValue

    }

    void addMx4jAdaptorContext(ConfigurationSettings configSettings,
            PropertySource propertySource) {
       
        BooleanPropertyValue exposeMx4jAdaptor = new BooleanPropertyValue(propertySource, JMXBootstrapProperties.EXPOSE_MX4J_ADAPTOR, JMXBootstrapProperties.EXPOSE_MX4J_ADAPTOR_DEFAULT);
        configSettings.addProperty(JMXBootstrapProperties.EXPOSE_MX4J_ADAPTOR, exposeMx4jAdaptor);

        if (exposeMx4jAdaptor.getValue()) {
           
            IntPropertyValue adaptorPort = new IntPropertyValue(propertySource, JMXBootstrapProperties.JMX_ADAPTOR_PORT, JMXBootstrapProperties.JMX_ADAPTOR_PORT_DEFAULT);
            configSettings.addProperty(JMXBootstrapProperties.JMX_ADAPTOR_PORT, adaptorPort);
           
            if (configSettings.getContextLocations().contains("META-INF/impala-jmx-bootstrap.xml")) {
View Full Code Here

Examples of org.impalaframework.config.BooleanPropertyValue

        }
    }
   
    protected void addJmxOperations(ConfigurationSettings configSettings,
            PropertySource propertySource) {
        BooleanPropertyValue exposeJmx = new BooleanPropertyValue(propertySource, JMXBootstrapProperties.EXPOSE_JMX_OPERATIONS, JMXBootstrapProperties.EXPOSE_JMX_OPERATIONS_DEFAULT);
        configSettings.addProperty(JMXBootstrapProperties.EXPOSE_JMX_OPERATIONS, exposeJmx);

        BooleanPropertyValue locateExistingMbeanServer = new BooleanPropertyValue(propertySource, JMXBootstrapProperties.JMX_LOCATE_EXISTING_SERVER, JMXBootstrapProperties.JMX_LOCATE_EXISTING_SERVER_DEFAULT);
        configSettings.addProperty(JMXBootstrapProperties.JMX_LOCATE_EXISTING_SERVER, locateExistingMbeanServer);
       
        if (exposeJmx.getValue()) {
            configSettings.add("META-INF/impala-jmx-bootstrap.xml");
        }
View Full Code Here

Examples of org.impalaframework.config.BooleanPropertyValue

    }

    void addMx4jAdaptorContext(ConfigurationSettings configSettings,
            PropertySource propertySource) {
       
        BooleanPropertyValue exposeMx4jAdaptor = new BooleanPropertyValue(propertySource, JMXBootstrapProperties.EXPOSE_MX4J_ADAPTOR, JMXBootstrapProperties.EXPOSE_MX4J_ADAPTOR_DEFAULT);
        configSettings.addProperty(JMXBootstrapProperties.EXPOSE_MX4J_ADAPTOR, exposeMx4jAdaptor);

        if (exposeMx4jAdaptor.getValue()) {
           
            IntPropertyValue adaptorPort = new IntPropertyValue(propertySource, JMXBootstrapProperties.JMX_ADAPTOR_PORT, JMXBootstrapProperties.JMX_ADAPTOR_PORT_DEFAULT);
            configSettings.addProperty(JMXBootstrapProperties.JMX_ADAPTOR_PORT, adaptorPort);
           
            if (configSettings.getContextLocations().contains("META-INF/impala-jmx-bootstrap.xml")) {
View Full Code Here

Examples of org.impalaframework.config.BooleanPropertyValue

        }
    }
   
    protected void addJmxOperations(ConfigurationSettings configSettings,
            PropertySource propertySource) {
        BooleanPropertyValue exposeJmx = new BooleanPropertyValue(propertySource, JMXBootstrapProperties.EXPOSE_JMX_OPERATIONS, JMXBootstrapProperties.EXPOSE_JMX_OPERATIONS_DEFAULT);
        configSettings.addProperty(JMXBootstrapProperties.EXPOSE_JMX_OPERATIONS, exposeJmx);

        BooleanPropertyValue locateExistingMbeanServer = new BooleanPropertyValue(propertySource, JMXBootstrapProperties.JMX_LOCATE_EXISTING_SERVER, JMXBootstrapProperties.JMX_LOCATE_EXISTING_SERVER_DEFAULT);
        configSettings.addProperty(JMXBootstrapProperties.JMX_LOCATE_EXISTING_SERVER, locateExistingMbeanServer);
       
        BooleanPropertyValue preferPlatformMbeanServer = new BooleanPropertyValue(propertySource, JMXBootstrapProperties.JMX_PREFER_PLATFORM_MBEAN_SERVER, JMXBootstrapProperties.JMX_PREFER_PLATFORM_MBEAN_SERVER_DEFAULT);
        configSettings.addProperty(JMXBootstrapProperties.JMX_PREFER_PLATFORM_MBEAN_SERVER, preferPlatformMbeanServer);
       
        if (exposeJmx.getValue()) {
            configSettings.add("META-INF/impala-jmx-bootstrap.xml");
        }
View Full Code Here

Examples of org.impalaframework.config.BooleanPropertyValue

    }

    protected void addProxyProperties(ConfigurationSettings configSettings,
            PropertySource propertySource) {
       
        BooleanPropertyValue proxyAllowNoService = new BooleanPropertyValue(propertySource, CoreBootstrapProperties.PROXY_ALLOW_NO_SERVICE, CoreBootstrapProperties.PROXY_ALLOW_NO_SERVICE_DEFAULT);
        BooleanPropertyValue proxySetContextClassLoader = new BooleanPropertyValue(propertySource, CoreBootstrapProperties.PROXY_SET_CONTEXT_CLASSLOADER, CoreBootstrapProperties.PROXY_SET_CONTEXT_CLASSLOADER_DEFAULT);
        IntPropertyValue proxyRetryCount = new IntPropertyValue(propertySource, CoreBootstrapProperties.PROXY_MISSING_SERVICE_RETRY_COUNT, CoreBootstrapProperties.PROXY_MISSING_SERVICE_RETRY_COUNT_DEFAULT);
        IntPropertyValue proxyRetryInterval = new IntPropertyValue(propertySource, CoreBootstrapProperties.PROXY_MISSING_SERVICE_RETRY_INTERVAL, CoreBootstrapProperties.PROXY_MISSING_SERVICE_RETRY_INTERVAL_DEFAULT);
       
        configSettings.addProperty(CoreBootstrapProperties.PROXY_ALLOW_NO_SERVICE, proxyAllowNoService);
        configSettings.addProperty(CoreBootstrapProperties.PROXY_SET_CONTEXT_CLASSLOADER, proxySetContextClassLoader);
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.