public class WeldConfiguration extends 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 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.
|
Boolean |
getBooleanProperty(ConfigurationKey key) |
Integer |
getIntegerProperty(ConfigurationKey key) |
Long |
getLongProperty(ConfigurationKey key) |
File |
getProxyDumpFilePath() |
String |
getStringProperty(ConfigurationKey key) |
public static final String CONFIGURATION_FILE
public WeldConfiguration(ServiceRegistry services, Deployment deployment)
bootstrapConfiguration - deployment - public String getStringProperty(ConfigurationKey key)
key - IllegalStateException - If the property type does not match the required typepublic Boolean getBooleanProperty(ConfigurationKey key)
key - IllegalStateException - If the property type does not match the required typepublic Long getLongProperty(ConfigurationKey key)
key - IllegalStateException - If the property type does not match the required typepublic Integer getIntegerProperty(ConfigurationKey key)
key - IllegalStateException - If the property type does not match the required typepublic File getProxyDumpFilePath()
null if the generated bytecode should not be dumpedConfigurationKey.PROXY_DUMPCopyright © 2015. All Rights Reserved.