类 SystemPropertyInitializer
- java.lang.Object
- org.springframework.batch.support.SystemPropertyInitializer
- 所有已实现的接口:
org.springframework.beans.factory.InitializingBean
public class SystemPropertyInitializer extends java.lang.Object implements org.springframework.beans.factory.InitializingBean
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).- 作者:
- Dave Syer
字段概要
字段 修饰符和类型 字段 说明 static java.lang.String
ENVIRONMENT
Name of system property used by default.
构造器概要
构造器 构造器 说明 SystemPropertyInitializer()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
字段详细资料
ENVIRONMENT
public static final java.lang.String ENVIRONMENT
Name of system property used by default.- 另请参阅:
- 常量字段值
构造器详细资料
SystemPropertyInitializer
public SystemPropertyInitializer()
方法详细资料
setKeyName
public void setKeyName(java.lang.String keyName)
Set the key name for the System property that is created. Defaults toENVIRONMENT
.- 参数:
keyName
- the key name to set
setDefaultValue
public void setDefaultValue(java.lang.String defaultValue)
Mandatory property specifying the default value of the System property.- 参数:
defaultValue
- the default value to set
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
Sets the System property with the provided name and default value.- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 抛出:
java.lang.Exception
- 另请参阅:
InitializingBean.afterPropertiesSet()