Module spring.data.mongodb
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 org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.ServerApiClass<?>voidsetDeprecationErrors(Boolean deprecationErrors) voidvoidsetVersion(String version) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.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:
-
ServerApiVersion
-
setDeprecationErrors
- Parameters:
deprecationErrors-- See Also:
-
ServerApi.Builder.deprecationErrors(boolean)
-
setStrict
- Parameters:
strict-- See Also:
-
ServerApi.Builder.strict(boolean)
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<com.mongodb.ServerApi>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<com.mongodb.ServerApi>
-