Package org.springframework.batch.core
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
Modifier and TypeFieldDescriptionstatic final String
The key to use in the execution context for batch version. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Return the full version string of the present Spring Batch codebase, or"N/A"
if it cannot be determined.
-
Field Details
-
BATCH_VERSION_KEY
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:
-