public class WeldConfiguration extends java.lang.Object implements Service
Each property may be set in three different sources (by priority in descending order):
weld.propertiesFor backwards compatibility there are some obsolete sources:
org.jboss.weld.executor.properties and org.jboss.weld.bootstrap.properties are also loaded for some
configuration keys,
If a configuration key is set in multiple sources (e.g. as a system property and in a weld.properties file), the value from the source with
higher priority is taken, other values are ignored.
If a configuration key is set multiple times in the same source (e.g. different weld.properties files) and the values are different, the
container automatically detects the problem and treats it as a deployment problem.
Unsupported configuration keys are ignored. If an invalid value is set, the container automatically detects the problem and treats it as a deployment problem.
BootstrapConfiguration,
ConfigurationKey| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIGURATION_FILE |
| Constructor and Description |
|---|
WeldConfiguration(ServiceRegistry services,
Deployment deployment) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
|
java.lang.Boolean |
getBooleanProperty(ConfigurationKey key) |
java.lang.Integer |
getIntegerProperty(ConfigurationKey key) |
java.lang.Long |
getLongProperty(ConfigurationKey key) |
java.io.File |
getProxyDumpFilePath() |
java.lang.String |
getStringProperty(ConfigurationKey key) |
public static final java.lang.String CONFIGURATION_FILE
public WeldConfiguration(ServiceRegistry services, Deployment deployment)
bootstrapConfiguration - deployment - public java.lang.String getStringProperty(ConfigurationKey key)
key - IllegalStateException - If the property type does not match the required typepublic java.lang.Boolean getBooleanProperty(ConfigurationKey key)
key - IllegalStateException - If the property type does not match the required typepublic java.lang.Long getLongProperty(ConfigurationKey key)
key - IllegalStateException - If the property type does not match the required typepublic java.lang.Integer getIntegerProperty(ConfigurationKey key)
key - IllegalStateException - If the property type does not match the required typepublic java.io.File getProxyDumpFilePath()
null if the generated bytecode should not be dumpedConfigurationKey.PROXY_DUMPCopyright © 2015. All Rights Reserved.