Class R2dbcConfigurationUtils

java.lang.Object
io.micronaut.starter.feature.database.r2dbc.R2dbcConfigurationUtils
Direct Known Subclasses:
DataR2dbc, R2dbc, R2dbcPool

public abstract class R2dbcConfigurationUtils extends Object
Utility base class for R2DBC features that provides common functionality for adding database-specific R2DBC configuration recipes based on the selected database driver feature in the generator context.
  • Constructor Details

    • R2dbcConfigurationUtils

      public R2dbcConfigurationUtils()
  • Method Details

    • addDatabaseConfigRecipe

      protected void addDatabaseConfigRecipe(GeneratorContext generatorContext, List<String> recipes)
      Adds a database-specific R2DBC configuration recipe to the given list of recipes based on the selected database driver feature in the generator context. The recipe is determined by checking the presence of specific database driver features in the generator context.
      Parameters:
      generatorContext - the generator context to check for database driver features
      recipes - the list of recipes to add the database-specific R2DBC configuration recipe to