public interface MongoProvider
HelperMongo instances.| Modifier and Type | Method and Description |
|---|---|
HelperMongo |
getDataSource()
Gets the global datasource.
|
HelperMongo |
getDataSource(MongoDatabaseCredentials credentials)
Constructs a new datasource using the given credentials.
|
MongoDatabaseCredentials |
getGlobalCredentials()
Gets the global database credentials being used for the global datasource.
|
@Nonnull HelperMongo getDataSource()
@Nonnull HelperMongo getDataSource(@Nonnull MongoDatabaseCredentials credentials)
These instances are not cached, and a new datasource is created each time this method is called.
credentials - the credentials for the database@Nonnull MongoDatabaseCredentials getGlobalCredentials()
Copyright © 2017. All rights reserved.