public abstract class AbstractMongoTemplate extends Object
| Modifier | Constructor and Description | 
|---|---|
protected  | 
AbstractMongoTemplate(com.mongodb.MongoClient mongo)
Initializes the MongoTemplate to connect using the given  
mongo instance and a database with default
 name "axonframework". | 
protected  | 
AbstractMongoTemplate(com.mongodb.MongoClient mongo,
                     String databaseName)
Initializes the MongoTemplate to connect using the given  
mongo instance and the database with given
 databaseName. | 
protected  | 
AbstractMongoTemplate(com.mongodb.client.MongoDatabase database)
Initializes the MongoTemplate to connect using the given  
database instance. | 
| Modifier and Type | Method and Description | 
|---|---|
protected com.mongodb.client.MongoDatabase | 
database()
Returns a reference to the Database with the configured database name. 
 | 
protected AbstractMongoTemplate(com.mongodb.MongoClient mongo)
mongo instance and a database with default
 name "axonframework". The given userName and password, when not null, are
 used to authenticate against the database.mongo - The Mongo instance configured to connect to the Mongo Serverprotected AbstractMongoTemplate(com.mongodb.MongoClient mongo,
                                String databaseName)
mongo instance and the database with given
 databaseName.mongo - The Mongo instance configured to connect to the Mongo ServerdatabaseName - The name of the database containing the dataprotected AbstractMongoTemplate(com.mongodb.client.MongoDatabase database)
database instance.database - The database instance to open collections inprotected com.mongodb.client.MongoDatabase database()
userName and password are ignored if the database is already
 in an authenticated state.Copyright © 2010–2018. All rights reserved.