Class SystemPropertyInitializer
java.lang.Object
org.springframework.batch.support.SystemPropertyInitializer
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean
@Deprecated(since="5.2.0",
            forRemoval=true)
public class SystemPropertyInitializer
extends Object
implements org.springframework.beans.factory.InitializingBean
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.2 with no replacement.
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).
- Author:
- Dave Syer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Name of system property used by default.
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Sets the System property with the provided name and default value.voidsetDefaultValue(String defaultValue) Deprecated, for removal: This API element is subject to removal in a future version.Mandatory property specifying the default value of the System property.voidsetKeyName(String keyName) Deprecated, for removal: This API element is subject to removal in a future version.Set the key name for the System property that is created.
- 
Field Details- 
ENVIRONMENTDeprecated, for removal: This API element is subject to removal in a future version.Name of system property used by default.- See Also:
 
 
- 
- 
Constructor Details- 
SystemPropertyInitializerpublic SystemPropertyInitializer()Deprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
setKeyNameDeprecated, for removal: This API element is subject to removal in a future version.Set the key name for the System property that is created. Defaults toENVIRONMENT.- Parameters:
- keyName- the key name to set
 
- 
setDefaultValueDeprecated, for removal: This API element is subject to removal in a future version.Mandatory property specifying the default value of the System property.- Parameters:
- defaultValue- the default value to set
 
- 
afterPropertiesSetDeprecated, for removal: This API element is subject to removal in a future version.Sets the System property with the provided name and default value.- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
- Throws:
- Exception
- See Also:
- 
- InitializingBean.afterPropertiesSet()
 
 
 
-