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 Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated, for removal: This API element is subject to removal in a future version.Name of system property used by default. -
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated, for removal: This API element is subject to removal in a future version.Sets the System property with the provided name and default value.void
setDefaultValue
(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.void
setKeyName
(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
-
ENVIRONMENT
Deprecated, for removal: This API element is subject to removal in a future version.Name of system property used by default.- See Also:
-
-
Constructor Details
-
SystemPropertyInitializer
public SystemPropertyInitializer()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setKeyName
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. Defaults toENVIRONMENT
.- Parameters:
keyName
- the key name to set
-
setDefaultValue
Deprecated, 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
-
afterPropertiesSet
Deprecated, 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:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
- See Also:
-
InitializingBean.afterPropertiesSet()
-