Class SpringBatchVersion
java.lang.Object
org.springframework.batch.core.SpringBatchVersion
Class that exposes the Spring Batch version. Fetches the "Implementation-Version"
manifest attribute from the jar file.
Note that some ClassLoaders do not expose the package metadata, hence this class might not be able to determine the Spring Batch version in all environments.
- Since:
- 5.0
- Author:
- Mahmoud Ben Hassine
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.since 6.1, scheduled for removal in 7.0. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturn the full version string of the present Spring Batch codebase, or"N/A"if it cannot be determined.
-
Field Details
-
BATCH_VERSION_KEY
Deprecated, for removal: This API element is subject to removal in a future version.since 6.1, scheduled for removal in 7.0. UseBatchConstants.BATCH_VERSIONinstead.The key to use in the execution context for batch version.- See Also:
-
-
Method Details
-
getVersion
Return the full version string of the present Spring Batch codebase, or"N/A"if it cannot be determined.- See Also:
-