public class SystemPropertyInitializer
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
static java.lang.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(java.lang.String defaultValue)
Mandatory property specifying the default value of the System property.
|
void |
setKeyName(java.lang.String keyName)
Set the key name for the System property that is created.
|
public static final java.lang.String ENVIRONMENT
public void setKeyName(java.lang.String keyName)
ENVIRONMENT
.keyName
- the key name to setpublic void setDefaultValue(java.lang.String defaultValue)
defaultValue
- the default value to setpublic void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
InitializingBean.afterPropertiesSet()