|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.batch.support.SystemPropertyInitializer
public class SystemPropertyInitializer
Helper class that sets up a System property with a default value. A System property is created with the specified key name, and default value (i.e. if the property already exists it is not changed).
Field Summary | |
---|---|
static java.lang.String |
ENVIRONMENT
Name of system property used by default. |
Constructor Summary | |
---|---|
SystemPropertyInitializer()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ENVIRONMENT
Constructor Detail |
---|
public SystemPropertyInitializer()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |