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
-
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.ServerApi
Class<?>
void
setDeprecationErrors
(Boolean deprecationErrors) void
void
setVersion
(String version) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getObject
in interfaceFactoryBean<com.mongodb.ServerApi>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<com.mongodb.ServerApi>
-