Class SpringDataMongoDB

java.lang.Object
org.springframework.data.mongodb.SpringDataMongoDB

public class SpringDataMongoDB extends Object
Class that exposes the SpringData MongoDB specific information like the current Version or driver information.
Since:
3.0
Author:
Christoph Strobl
  • Constructor Details

    • SpringDataMongoDB

      public SpringDataMongoDB()
  • Method Details

    • driverInformation

      public static com.mongodb.MongoDriverInformation driverInformation()
      Obtain the SpringData MongoDB specific driver information.
      Returns:
      never null.
    • version

      public static org.springframework.data.util.Version 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.