Interface DatabaseDriverConfigurationFeature
- All Superinterfaces:
io.micronaut.core.naming.Described
,Feature
,io.micronaut.core.naming.Named
,io.micronaut.core.order.Ordered
- All Known Implementing Classes:
Dbcp
,Hikari
,JdbcFeature
,Tomcat
,Ucp
A feature that configures a datasource with a driver.
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
applyDefaultConfig
(GeneratorContext generatorContext, DatabaseDriverFeature dbFeature, Map<String, Object> config) Returns the configuration property key for the database driver class name.Returns the configuration property key for the database password.Returns the configuration property key for the database connection URL.Returns the configuration property key for the database username.Methods inherited from interface io.micronaut.core.naming.Described
getDescription
Methods inherited from interface io.micronaut.projectgen.core.feature.Feature
apply, getCategory, getDescription, getFrameworkDocumentation, getName, getOrder, getThirdPartyDocumentation, getTitle, isCommunity, isPreview, isVisible, processSelectedFeatures, supports
-
Method Details
-
getUrlKey
String getUrlKey()Returns the configuration property key for the database connection URL.- Returns:
- the URL configuration key
-
getDriverKey
String getDriverKey()Returns the configuration property key for the database driver class name.- Returns:
- the driver class name configuration key
-
getUsernameKey
String getUsernameKey()Returns the configuration property key for the database username.- Returns:
- the username configuration key
-
getPasswordKey
String getPasswordKey()Returns the configuration property key for the database password.- Returns:
- the password configuration key
-
applyDefaultConfig
default void applyDefaultConfig(GeneratorContext generatorContext, DatabaseDriverFeature dbFeature, Map<String, Object> config)
-