private Map<ConfigurationKey, Object> init(ServiceRegistry services, Deployment deployment) { // 1. Properties files // weld.properties Map<ConfigurationKey, Object> properties = readFileProperties(findPropertiesFiles(deployment, CONFIGURATION_FILE)); // org.jboss.weld.bootstrap.properties merge(properties, readObsoleteFileProperties( findPropertiesFiles(deployment, BOOTSTRAP_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("concurrentDeployment", ConfigurationKey.CONCURRENT_DEPLOYMENT) .put("preloaderThreadPoolSize", ConfigurationKey.PRELOADER_THREAD_POOL_SIZE).build()), BOOTSTRAP_CONFIGURATION_FILE); // org.jboss.weld.executor.properties merge(properties, readObsoleteFileProperties( findPropertiesFiles(deployment, EXECUTOR_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("threadPoolSize", ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE) .put("threadPoolDebug", ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG) .put("threadPoolType", ConfigurationKey.EXECUTOR_THREAD_POOL_TYPE) .put("threadPoolKeepAliveTime", ConfigurationKey.EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME).build()), EXECUTOR_CONFIGURATION_FILE); // META-INF/org.jboss.weld.enableUnsafeProxies if (!findPropertiesFiles(deployment, UNSAFE_PROXIES_MARKER).isEmpty()) { merge(properties, ImmutableMap.of(ConfigurationKey.RELAXED_CONSTRUCTION, true), UNSAFE_PROXIES_MARKER); } // 2. System properties merge(properties, getSystemProperties(), SYSTEM_PROPETIES); merge(properties, getObsoleteSystemProperties(), OBSOLETE_SYSTEM_PROPETIES); // 3. Integrator SPI // ExternalConfiguration.getConfigurationProperties() map has precedence merge(properties, processExternalConfiguration(getExternalConfigurationOptions(services)), "ExternalConfiguration"); return properties; }
private Map<ConfigurationKey, Object> init(ServiceRegistry services, Deployment deployment) { // 1. Properties files // weld.properties Map<ConfigurationKey, Object> properties = readFileProperties(findPropertiesFiles(deployment, CONFIGURATION_FILE)); // org.jboss.weld.bootstrap.properties merge(properties, readObsoleteFileProperties( findPropertiesFiles(deployment, BOOTSTRAP_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("concurrentDeployment", ConfigurationKey.CONCURRENT_DEPLOYMENT) .put("preloaderThreadPoolSize", ConfigurationKey.PRELOADER_THREAD_POOL_SIZE).build()), BOOTSTRAP_CONFIGURATION_FILE); // org.jboss.weld.executor.properties merge(properties, readObsoleteFileProperties( findPropertiesFiles(deployment, EXECUTOR_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("threadPoolSize", ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE) .put("threadPoolDebug", ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG) .put("threadPoolType", ConfigurationKey.EXECUTOR_THREAD_POOL_TYPE) .put("threadPoolKeepAliveTime", ConfigurationKey.EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME).build()), EXECUTOR_CONFIGURATION_FILE); // META-INF/org.jboss.weld.enableUnsafeProxies if (!findPropertiesFiles(deployment, UNSAFE_PROXIES_MARKER).isEmpty()) { merge(properties, ImmutableMap.of(ConfigurationKey.RELAXED_CONSTRUCTION, true), UNSAFE_PROXIES_MARKER); } // 2. System properties merge(properties, getSystemProperties(), SYSTEM_PROPETIES); merge(properties, getObsoleteSystemProperties(), OBSOLETE_SYSTEM_PROPETIES); // 3. Integrator SPI // ExternalConfiguration.getConfigurationProperties() map has precedence merge(properties, processExternalConfiguration(getExternalConfigurationOptions(services)), "ExternalConfiguration"); return properties; }
private Map<ConfigurationKey, Object> init(ServiceRegistry services, Deployment deployment) { // 1. Properties files // weld.properties Map<ConfigurationKey, Object> properties = readFileProperties(findPropertiesFiles(deployment, CONFIGURATION_FILE)); // org.jboss.weld.bootstrap.properties merge(properties, readObsoleteFileProperties( findPropertiesFiles(deployment, BOOTSTRAP_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("concurrentDeployment", ConfigurationKey.CONCURRENT_DEPLOYMENT) .put("preloaderThreadPoolSize", ConfigurationKey.PRELOADER_THREAD_POOL_SIZE).build()), BOOTSTRAP_CONFIGURATION_FILE); // org.jboss.weld.executor.properties merge(properties, readObsoleteFileProperties( findPropertiesFiles(deployment, EXECUTOR_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("threadPoolSize", ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE) .put("threadPoolDebug", ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG) .put("threadPoolType", ConfigurationKey.EXECUTOR_THREAD_POOL_TYPE) .put("threadPoolKeepAliveTime", ConfigurationKey.EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME).build()), EXECUTOR_CONFIGURATION_FILE); // META-INF/org.jboss.weld.enableUnsafeProxies if (!findPropertiesFiles(deployment, UNSAFE_PROXIES_MARKER).isEmpty()) { merge(properties, ImmutableMap.of(ConfigurationKey.RELAXED_CONSTRUCTION, true), UNSAFE_PROXIES_MARKER); } // 2. System properties merge(properties, getSystemProperties(), SYSTEM_PROPETIES); merge(properties, getObsoleteSystemProperties(), OBSOLETE_SYSTEM_PROPETIES); // 3. Integrator SPI // ExternalConfiguration.getConfigurationProperties() map has precedence merge(properties, processExternalConfiguration(getExternalConfigurationOptions(services)), "ExternalConfiguration"); return properties; }
private Map<ConfigurationKey, Object> init(ServiceRegistry services, Deployment deployment) { // 1. Properties files // weld.properties Map<ConfigurationKey, Object> properties = readFileProperties(findPropertiesFiles(deployment, CONFIGURATION_FILE)); // org.jboss.weld.bootstrap.properties merge(properties, readObsoleteFileProperties( findPropertiesFiles(deployment, BOOTSTRAP_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("concurrentDeployment", ConfigurationKey.CONCURRENT_DEPLOYMENT) .put("preloaderThreadPoolSize", ConfigurationKey.PRELOADER_THREAD_POOL_SIZE).build()), BOOTSTRAP_CONFIGURATION_FILE); // org.jboss.weld.executor.properties merge(properties, readObsoleteFileProperties( findPropertiesFiles(deployment, EXECUTOR_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("threadPoolSize", ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE) .put("threadPoolDebug", ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG) .put("threadPoolType", ConfigurationKey.EXECUTOR_THREAD_POOL_TYPE) .put("threadPoolKeepAliveTime", ConfigurationKey.EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME).build()), EXECUTOR_CONFIGURATION_FILE); // META-INF/org.jboss.weld.enableUnsafeProxies if (!findPropertiesFiles(deployment, UNSAFE_PROXIES_MARKER).isEmpty()) { merge(properties, ImmutableMap.of(ConfigurationKey.RELAXED_CONSTRUCTION, true), UNSAFE_PROXIES_MARKER); } // 2. System properties merge(properties, getSystemProperties(), SYSTEM_PROPETIES); merge(properties, getObsoleteSystemProperties(), OBSOLETE_SYSTEM_PROPETIES); // 3. Integrator SPI // ExternalConfiguration.getConfigurationProperties() map has precedence merge(properties, processExternalConfiguration(getExternalConfigurationOptions(services)), "ExternalConfiguration"); return properties; }
Map<ConfigurationKey, Object> properties = readFileProperties(findPropertiesFiles(deployment, CONFIGURATION_FILE)); findPropertiesFiles(deployment, BOOTSTRAP_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("concurrentDeployment", ConfigurationKey.CONCURRENT_DEPLOYMENT) .put("preloaderThreadPoolSize", ConfigurationKey.PRELOADER_THREAD_POOL_SIZE).build()), BOOTSTRAP_CONFIGURATION_FILE); findPropertiesFiles(deployment, EXECUTOR_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("threadPoolSize", ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE) .put("threadPoolDebug", ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG) if (!findPropertiesFiles(deployment, UNSAFE_PROXIES_MARKER).isEmpty()) { merge(properties, ImmutableMap.<ConfigurationKey, Object>of(ConfigurationKey.RELAXED_CONSTRUCTION, true), UNSAFE_PROXIES_MARKER);
private Map<ConfigurationKey, Object> init(ServiceRegistry services, Deployment deployment) { // 1. Properties files // weld.properties Map<ConfigurationKey, Object> properties = readFileProperties(findPropertiesFiles(deployment, CONFIGURATION_FILE)); // org.jboss.weld.bootstrap.properties merge(properties, readObsoleteFileProperties( findPropertiesFiles(deployment, BOOTSTRAP_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("concurrentDeployment", ConfigurationKey.CONCURRENT_DEPLOYMENT) .put("preloaderThreadPoolSize", ConfigurationKey.PRELOADER_THREAD_POOL_SIZE).build()), BOOTSTRAP_CONFIGURATION_FILE); // org.jboss.weld.executor.properties merge(properties, readObsoleteFileProperties( findPropertiesFiles(deployment, EXECUTOR_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("threadPoolSize", ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE) .put("threadPoolDebug", ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG) .put("threadPoolType", ConfigurationKey.EXECUTOR_THREAD_POOL_TYPE) .put("threadPoolKeepAliveTime", ConfigurationKey.EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME).build()), EXECUTOR_CONFIGURATION_FILE); // META-INF/org.jboss.weld.enableUnsafeProxies if (!findPropertiesFiles(deployment, UNSAFE_PROXIES_MARKER).isEmpty()) { merge(properties, ImmutableMap.of(ConfigurationKey.RELAXED_CONSTRUCTION, true), UNSAFE_PROXIES_MARKER); } // 2. System properties merge(properties, getSystemProperties(), SYSTEM_PROPETIES); merge(properties, getObsoleteSystemProperties(), OBSOLETE_SYSTEM_PROPETIES); // 3. Integrator SPI // ExternalConfiguration.getConfigurationProperties() map has precedence merge(properties, processExternalConfiguration(getExternalConfigurationOptions(services)), "ExternalConfiguration"); return properties; }