public class SystemPropertyInitializer extends Object implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
static String |
ENVIRONMENT
Name of system property used by default.
|
Constructor and Description |
---|
SystemPropertyInitializer() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Sets the System property with the provided name and default value.
|
void |
setDefaultValue(String defaultValue)
Mandatory property specifying the default value of the System property.
|
void |
setKeyName(String keyName)
Set the key name for the System property that is created.
|
public static final String ENVIRONMENT
public void setKeyName(String keyName)
ENVIRONMENT
.keyName
- the key name to setpublic void setDefaultValue(String defaultValue)
defaultValue
- the default value to setCopyright © 2014 Pivotal. All rights reserved.