Class R2dbcConnectionFactoryBean

java.lang.Object
io.micronaut.r2dbc.R2dbcConnectionFactoryBean

@Factory public class R2dbcConnectionFactoryBean extends Object
Core factory bean that exposes the following beans.
  • The ConnectionFactoryOptions.Builder
  • The ConnectionFactoryOptions
  • The ConnectionFactory
Since:
1.0.0
Author:
graemerocher
  • Constructor Details

    • R2dbcConnectionFactoryBean

      public R2dbcConnectionFactoryBean()
  • Method Details

    • connectionFactoryOptionsBuilder

      @EachBean(BasicR2dbcProperties.class) protected io.r2dbc.spi.ConnectionFactoryOptions.Builder connectionFactoryOptionsBuilder(BasicR2dbcProperties basicR2dbcProperties)
      Method that exposes the ConnectionFactoryOptions.Builder.
      Parameters:
      basicR2dbcProperties - The basic properties
      Returns:
      The builder
    • connectionFactoryOptions

      @EachBean(io.r2dbc.spi.ConnectionFactoryOptions.Builder.class) protected io.r2dbc.spi.ConnectionFactoryOptions connectionFactoryOptions(io.r2dbc.spi.ConnectionFactoryOptions.Builder builder)
      Method that exposes the ConnectionFactoryOptions.
      Parameters:
      builder - The builder
      Returns:
      The options
    • connectionFactory

      @EachBean(io.r2dbc.spi.ConnectionFactoryOptions.class) @Context protected io.r2dbc.spi.ConnectionFactory connectionFactory(io.r2dbc.spi.ConnectionFactoryOptions options)
      Method that exposes the ConnectionFactory.
      Parameters:
      options - the options
      Returns:
      The connection factory