added getter/setter for ExceptionTranslator
This commit is contained in:
@@ -75,6 +75,15 @@ public class MongoFactoryBean implements FactoryBean<Mongo>, InitializingBean, P
|
|||||||
this.port = port;
|
this.port = port;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PersistenceExceptionTranslator getExceptionTranslator() {
|
||||||
|
return exceptionTranslator;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExceptionTranslator(
|
||||||
|
PersistenceExceptionTranslator exceptionTranslator) {
|
||||||
|
this.exceptionTranslator = exceptionTranslator;
|
||||||
|
}
|
||||||
|
|
||||||
public Mongo getObject() throws Exception {
|
public Mongo getObject() throws Exception {
|
||||||
Assert.notNull(mongo, "Mongo must not be null");
|
Assert.notNull(mongo, "Mongo must not be null");
|
||||||
return mongo;
|
return mongo;
|
||||||
|
|||||||
Reference in New Issue
Block a user