public class MongoClientFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<com.mongodb.MongoClient>
| Constructor and Description |
|---|
MongoClientFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.MongoClient |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setClientOptions(com.mongodb.MongoClientOptions clientOptions) |
void |
setDatabases(MongoDatabase[] databases) |
void |
setServers(MongoServer[] servers) |
public void setServers(MongoServer[] servers)
public void setDatabases(MongoDatabase[] databases)
public void setClientOptions(com.mongodb.MongoClientOptions clientOptions)
public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<com.mongodb.MongoClient>public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<com.mongodb.MongoClient>public com.mongodb.MongoClient getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<com.mongodb.MongoClient>Copyright © 2017. All rights reserved.