|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 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(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ENVIRONMENT
Constructor Detail |
---|
public SystemPropertyInitializer()
Method Detail |
---|
public void setKeyName(String keyName)
ENVIRONMENT
.
keyName
- the key name to setpublic void setDefaultValue(String defaultValue)
defaultValue
- the default value to setpublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
InitializingBean.afterPropertiesSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |