Package io.micronaut.r2dbc
Class R2dbcConnectionFactoryBean
java.lang.Object
io.micronaut.r2dbc.R2dbcConnectionFactoryBean
Core factory bean that exposes the following beans.
- The
ConnectionFactoryOptions.Builder
- The
ConnectionFactoryOptions
- The
ConnectionFactory
- Since:
- 1.0.0
- Author:
- graemerocher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected io.r2dbc.spi.ConnectionFactory
connectionFactory
(io.r2dbc.spi.ConnectionFactoryOptions options) Method that exposes theConnectionFactory
.protected io.r2dbc.spi.ConnectionFactoryOptions
connectionFactoryOptions
(io.r2dbc.spi.ConnectionFactoryOptions.Builder builder) Method that exposes theConnectionFactoryOptions
.protected io.r2dbc.spi.ConnectionFactoryOptions.Builder
connectionFactoryOptionsBuilder
(BasicR2dbcProperties basicR2dbcProperties) Method that exposes theConnectionFactoryOptions.Builder
.
-
Constructor Details
-
R2dbcConnectionFactoryBean
public R2dbcConnectionFactoryBean()
-
-
Method Details
-
connectionFactoryOptionsBuilder
@EachBean(BasicR2dbcProperties.class) protected io.r2dbc.spi.ConnectionFactoryOptions.Builder connectionFactoryOptionsBuilder(BasicR2dbcProperties basicR2dbcProperties) Method that exposes theConnectionFactoryOptions.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 theConnectionFactoryOptions
.- 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 theConnectionFactory
.- Parameters:
options
- the options- Returns:
- The connection factory
-