public class WeldConfiguration extends Object implements org.jboss.weld.bootstrap.api.Service
Each property may be set in three different sources (by priority in descending order):
For 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(org.jboss.weld.bootstrap.api.ServiceRegistry services,
org.jboss.weld.bootstrap.spi.Deployment deployment) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
Boolean |
getBooleanProperty(ConfigurationKey key) |
Integer |
getIntegerProperty(ConfigurationKey key) |
Long |
getLongProperty(ConfigurationKey key) |
File |
getProxyDumpFilePath() |
String |
getStringProperty(ConfigurationKey key) |
boolean |
isFinalMethodIgnored(String className) |
public static final String CONFIGURATION_FILE
public WeldConfiguration(org.jboss.weld.bootstrap.api.ServiceRegistry services, org.jboss.weld.bootstrap.spi.Deployment deployment)
services - 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_DUMPpublic boolean isFinalMethodIgnored(String className)
className - true if the final methods declared on the given type should be ignored, false otherwiseConfigurationKey.PROXY_IGNORE_FINAL_METHODSpublic void cleanup()
cleanup in interface org.jboss.weld.bootstrap.api.ServiceCopyright © 2017. All rights reserved.