Class DefaultMongoDatabaseNameProvider
java.lang.Object
io.micronaut.data.mongodb.operations.DefaultMongoDatabaseNameProvider
- All Implemented Interfaces:
MongoDatabaseNameProvider
@Internal
public final class DefaultMongoDatabaseNameProvider
extends Object
implements MongoDatabaseNameProvider
Internal implementation of
MongoDatabaseNameProvider
.- Since:
- 3.9.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorDescriptionDefaultMongoDatabaseNameProvider
(io.micronaut.context.BeanContext beanContext, @Nullable String server, RuntimeEntityRegistry runtimeEntityRegistry, @Nullable String defaultDatabaseName, @Nullable SchemaTenantResolver tenantResolver) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.data.mongodb.operations.MongoDatabaseNameProvider
provide
-
Constructor Details
-
DefaultMongoDatabaseNameProvider
public DefaultMongoDatabaseNameProvider(io.micronaut.context.BeanContext beanContext, @Nullable @Nullable String server, RuntimeEntityRegistry runtimeEntityRegistry, @Nullable @Nullable String defaultDatabaseName, @Nullable @Nullable SchemaTenantResolver tenantResolver)
-
-
Method Details
-
provide
Description copied from interface:MongoDatabaseNameProvider
Provides the database name based on the persistent entity type.- Specified by:
provide
in interfaceMongoDatabaseNameProvider
- Parameters:
type
- The entity type- Returns:
- The collection name
-
provide
Description copied from interface:MongoDatabaseNameProvider
Provides the database name based on the persistent entity and the repository class.- Specified by:
provide
in interfaceMongoDatabaseNameProvider
- Parameters:
persistentEntity
- The persistent entityrepositoryClass
- The repository class used- Returns:
- The collection name
-