public class WeldConfiguration extends Object implements Service
Each property may be set in three different sources:
weld.propertiesFor backwards compatibility:
org.jboss.weld.executor.properties and org.jboss.weld.bootstrap.properties are also loaded for some
configuration keys,BootstrapConfiguration,
ConfigurationKey| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURATION_FILE |
| Constructor and Description |
|---|
WeldConfiguration(BootstrapConfiguration bootstrapConfiguration,
ExternalConfiguration externalConfiguration,
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(BootstrapConfiguration bootstrapConfiguration, ExternalConfiguration externalConfiguration, 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 © 2014. All Rights Reserved.