DATAMONGO-2051 - Polishing.

Introduce MongoClientVersion.isMongo38Driver() for API parity between versions 2.0.x and 2.1.

Original pull request: #598.
This commit is contained in:
Mark Paluch
2018-08-14 16:40:31 +02:00
parent e4da45baed
commit e484337dcf

View File

@@ -22,6 +22,7 @@ import org.springframework.util.ClassUtils;
* different versions.
*
* @author Christoph Strobl
* @author Mark Paluch
* @since 1.7
*/
public class MongoClientVersion {
@@ -54,6 +55,14 @@ public class MongoClientVersion {
return true;
}
/**
* @return {@literal true} if MongoDB Java driver version 3.8 or later is on classpath.
* @since 2.1
*/
public static boolean isMongo38Driver() {
return true;
}
/**
* @return {@literal true} if the async MongoDB Java driver is on classpath.
*/