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

public interface DatabaseDriverConfigurationFeature extends Feature
A feature that configures a datasource with a driver.
  • 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)