Class MongoServerApiFactoryBean
java.lang.Object
org.springframework.data.mongodb.core.MongoServerApiFactoryBean
- All Implemented Interfaces:
FactoryBean<com.mongodb.ServerApi>
- Since:
- 3.3
- Author:
- Christoph Strobl
-
Field Summary
Fields inherited from interface FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable com.mongodb.ServerApi@Nullable Class<?> voidsetDeprecationErrors(@Nullable Boolean deprecationErrors) voidvoidsetVersion(String version) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FactoryBean
isSingleton
-
Constructor Details
-
MongoServerApiFactoryBean
public MongoServerApiFactoryBean()
-
-
Method Details
-
setVersion
- Parameters:
version- the version string either as the enum name or the server version value.- See Also:
-
setDeprecationErrors
- Parameters:
deprecationErrors-- See Also:
-
setStrict
- Parameters:
strict-- See Also:
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<com.mongodb.ServerApi>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<com.mongodb.ServerApi>
-