Class AbstractMongoTemplate

java.lang.Object
org.axonframework.extensions.mongo.AbstractMongoTemplate
Direct Known Subclasses:
DefaultMongoTemplate

public abstract class AbstractMongoTemplate extends Object
Abstract implementation for Mongo templates. Mongo templates give access to the collections in a Mongo Database used by components of the Axon Framework.
Since:
2.0
Author:
Allard Buijze
  • Constructor Details

  • Method Details

    • database

      protected com.mongodb.client.MongoDatabase database()
      Returns a reference to the Database with the configured database name. If a username and/or password have been provided, these are used to authenticate against the database.

      Note that the configured userName and password are ignored if the database is already in an authenticated state.

      Returns:
      a DB instance, referring to the database with configured name.