|
Right now there are several configurable components, each one is using its own source. We should unify the configuration so that each property can be set either in a single properties file, via system property or in a map provided in BootstrapConfiguration. In the same time, we should stay as compatible as possible (especially in 2.2 branch).
BootstrapConfiguration
Source: integrator SPI, by default properties file of name org.jboss.weld.bootstrap.properties
|
Name
|
Type
|
Default value
|
Notes
|
|
concurrentDeployment
|
boolean
|
true
|
-
|
|
preloaderThreadPoolSize
|
int
|
Math.max(1, Runtime.getRuntime().availableProcessors() - 1))
|
-
|
|
isNonPortableModeEnabled()
|
boolean
|
false
|
SystemPropertiesConfiguration has precedence
|
SystemPropertiesConfiguration
Source: system properties
|
Name
|
Type
|
Default value
|
|
org.jboss.weld.xml.disableValidating
|
boolean
|
false
|
|
org.jboss.weld.nonPortableMode
|
boolean
|
false
|
|
org.jboss.weld.proxy.dump
|
string
|
null
|
ExecutorServicesFactory
Source: properties file of name org.jboss.weld.executor.properties
|
Name
|
Type
|
Default value
|
|
threadPoolSize
|
int
|
Runtime.getRuntime().availableProcessors()
|
|
threadPoolDebug
|
boolean
|
false
|
|
threadPoolType
|
string
|
FIXED
|
|
threadPoolKeepAliveTime
|
long
|
60
|
TypeSafeResolver
Source: system properties
|
Name
|
Type
|
Default value
|
|
org.jboss.weld.resolution.cacheSize
|
long
|
0x100000L
|
AbstractInstantiatorFactory
Source: marker file META-INF/org.jboss.weld.enableUnsafeProxies
|