public class EnvironmentConfigurationProvider extends Object implements ConfigurationProvider
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ENV_VAR_PREFIX
The default prefix of the environment variables holding Sentry configuration.
|
Constructor and Description |
---|
EnvironmentConfigurationProvider()
Creates a new instance with environment variables assumed to have the
DEFAULT_ENV_VAR_PREFIX . |
EnvironmentConfigurationProvider(String envVarPrefix)
Creates a new instance that will look for env variables having the provided prefix.
|
Modifier and Type | Method and Description |
---|---|
String |
getProperty(String key)
Returns the value of the configuration property with the provided key.
|
public static final String DEFAULT_ENV_VAR_PREFIX
public EnvironmentConfigurationProvider()
DEFAULT_ENV_VAR_PREFIX
.public EnvironmentConfigurationProvider(String envVarPrefix)
envVarPrefix
- the prefix of the environment variables@Nullable public String getProperty(String key)
ConfigurationProvider
getProperty
in interface ConfigurationProvider
key
- the name of the configuration propertyCopyright © 2012–2020. All rights reserved.