Class MongoClientFactory

    • Method Detail

      • createMongoClient

        public com.mongodb.MongoClient createMongoClient​(com.mongodb.MongoClientOptions options)
        Creates a MongoClient using the given options. If the environment contains a local.mongo.port property, it is used to configure a client to an embedded MongoDB instance.
        Parameters:
        options - the options
        Returns:
        the Mongo client