public class MongoClientFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<com.mongodb.MongoClient>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
MongoClientFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
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 void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic 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>public void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanCopyright © 2020. All rights reserved.