public class MongoClientFactoryBean extends AbstractFactoryBean<com.mongodb.MongoClient> implements PersistenceExceptionTranslator
logger
MongoClientFactoryBean()
protected com.mongodb.MongoClient
createInstance()
protected void
destroyInstance(com.mongodb.MongoClient instance)
Class<? extends com.mongodb.MongoClient>
getObjectType()
void
setCredentials(com.mongodb.MongoCredential[] credentials)
MongoClient
setExceptionTranslator(PersistenceExceptionTranslator exceptionTranslator)
PersistenceExceptionTranslator
setHost(String host)
setMongoClientOptions(com.mongodb.MongoClientOptions mongoClientOptions)
MongoClientOptions
setPort(int port)
setReplicaSetSeeds(com.mongodb.ServerAddress[] replicaSetSeeds)
ServerAddress
DataAccessException
translateExceptionIfPossible(RuntimeException ex)
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public MongoClientFactoryBean()
public void setMongoClientOptions(@Nullable com.mongodb.MongoClientOptions mongoClientOptions)
mongoClientOptions
public void setCredentials(@Nullable com.mongodb.MongoCredential[] credentials)
credentials
public void setReplicaSetSeeds(@Nullable com.mongodb.ServerAddress[] replicaSetSeeds)
replicaSetSeeds
public void setHost(@Nullable String host)
host
public void setPort(int port)
port
public void setExceptionTranslator(@Nullable PersistenceExceptionTranslator exceptionTranslator)
exceptionTranslator
public Class<? extends com.mongodb.MongoClient> getObjectType()
getObjectType
FactoryBean<com.mongodb.MongoClient>
AbstractFactoryBean<com.mongodb.MongoClient>
@Nullable public DataAccessException translateExceptionIfPossible(RuntimeException ex)
translateExceptionIfPossible
protected com.mongodb.MongoClient createInstance() throws Exception
createInstance
Exception
protected void destroyInstance(@Nullable com.mongodb.MongoClient instance) throws Exception
destroyInstance
Impressum und Datenschutz Copyright ©2018 eir.me