added getter/setter for ExceptionTranslator

This commit is contained in:
Thomas Risberg
2011-01-25 12:04:55 -05:00
parent a1c6c8d671
commit 2cd7b74264

View File

@@ -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;