MongoClientFactoryBean instead.@Deprecated public class MongoFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<com.mongodb.Mongo> implements org.springframework.dao.support.PersistenceExceptionTranslator
| Constructor and Description |
|---|
MongoFactoryBean()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.mongodb.Mongo |
createInstance()
Deprecated.
|
protected void |
destroyInstance(com.mongodb.Mongo mongo)
Deprecated.
|
Class<? extends com.mongodb.Mongo> |
getObjectType()
Deprecated.
|
void |
setExceptionTranslator(org.springframework.dao.support.PersistenceExceptionTranslator exceptionTranslator)
Deprecated.
Configures the
PersistenceExceptionTranslator to use. |
void |
setHost(String host)
Deprecated.
Configures the host to connect to.
|
void |
setMongoOptions(com.mongodb.MongoOptions mongoOptions)
Deprecated.
|
void |
setPort(int port)
Deprecated.
Configures the port to connect to.
|
void |
setReplicaPair(com.mongodb.ServerAddress[] replicaPair)
Deprecated.
use
setReplicaSetSeeds(ServerAddress[]) instead |
void |
setReplicaSetSeeds(com.mongodb.ServerAddress[] replicaSetSeeds)
Deprecated.
|
void |
setWriteConcern(com.mongodb.WriteConcern writeConcern)
Deprecated.
Sets the
WriteConcern to be configured for the Mongo instance to be created. |
org.springframework.dao.DataAccessException |
translateExceptionIfPossible(RuntimeException ex)
Deprecated.
|
public void setMongoOptions(com.mongodb.MongoOptions mongoOptions)
mongoOptions - public void setReplicaSetSeeds(com.mongodb.ServerAddress[] replicaSetSeeds)
@Deprecated public void setReplicaPair(com.mongodb.ServerAddress[] replicaPair)
setReplicaSetSeeds(ServerAddress[]) insteadreplicaPair - public void setHost(String host)
host - public void setPort(int port)
port - public void setWriteConcern(com.mongodb.WriteConcern writeConcern)
WriteConcern to be configured for the Mongo instance to be created.writeConcern - public void setExceptionTranslator(org.springframework.dao.support.PersistenceExceptionTranslator exceptionTranslator)
PersistenceExceptionTranslator to use.exceptionTranslator - can be null.public Class<? extends com.mongodb.Mongo> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<com.mongodb.Mongo>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<com.mongodb.Mongo>public org.springframework.dao.DataAccessException translateExceptionIfPossible(RuntimeException ex)
translateExceptionIfPossible in interface org.springframework.dao.support.PersistenceExceptionTranslatorprotected com.mongodb.Mongo createInstance()
throws Exception
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<com.mongodb.Mongo>ExceptionCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.