Class SpringDataMongoDB
java.lang.Object
org.springframework.data.mongodb.SpringDataMongoDB
Class that exposes the SpringData MongoDB specific information like the current
Version or
driver information.- Since:
- 3.0
- Author:
- Christoph Strobl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MongoDriverInformationObtain the SpringData MongoDB specific driver information.static Versionversion()Fetches the "Implementation-Version" manifest attribute from the jar file.
-
Constructor Details
-
SpringDataMongoDB
public SpringDataMongoDB()
-
-
Method Details
-
driverInformation
Obtain the SpringData MongoDB specific driver information.- Returns:
- never null.
-
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 version in all environments. In this case the current Major version is returned as a fallback.- Returns:
- never null.
-