org.keycloak.connections.mongo

## Class DefaultMongoConnectionProvider

- java.lang.Object
- - org.keycloak.connections.mongo.DefaultMongoConnectionProvider

- All Implemented Interfaces:
    MongoConnectionProvider, Provider

      public class DefaultMongoConnectionProvider
      extends Object
      implements MongoConnectionProvider

  Author:
    Stian Thorgersen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultMongoConnectionProvider(com.mongodb.DB db, MongoStore mongoStore, MongoStoreInvocationContext invocationContext)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `com.mongodb.DB` | `getDB()`
    `MongoStoreInvocationContext` | `getInvocationContext()`
    `MongoStore` | `getMongoStore()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultMongoConnectionProvider

          public DefaultMongoConnectionProvider(com.mongodb.DB db,
                                        MongoStore mongoStore,
                                        MongoStoreInvocationContext invocationContext)

  - ### Method Detail

    - #### getDB

          public com.mongodb.DB getDB()

      Specified by:
        `getDB` in interface `MongoConnectionProvider`

    - #### getMongoStore

          public MongoStore getMongoStore()

      Specified by:
        `getMongoStore` in interface `MongoConnectionProvider`

    - #### getInvocationContext

          public MongoStoreInvocationContext getInvocationContext()

      Specified by:
        `getInvocationContext` in interface `MongoConnectionProvider`

    - #### close

          public void close()

      Specified by:
        `close` in interface `Provider`

Copyright © 2015. All Rights Reserved.