Example usage for org.springframework.data.mongodb.core SimpleMongoDbFactory subclass-usage

List of usage examples for org.springframework.data.mongodb.core SimpleMongoDbFactory subclass-usage

Introduction

In this page you can find the example usage for org.springframework.data.mongodb.core SimpleMongoDbFactory subclass-usage.

Usage

From source file uk.ac.ebi.eva.lib.datastore.MultiMongoDbFactory.java

/**
 * Simplified version of https://github.com/Loki-Afro/multi-tenant-spring-mongodb/blob/master/src/main/java/com/github/zarathustra/mongo/MultiTenantMongoDbFactory.java
 *
 * This is another implementation to MongoDbFactory, similar to SimpleMongoDbFactory, but allows to use several DBs.
 *
 * To use this class, you must @Autowire it in some component, or any place that loads beans into the environment.