org.springframework.r2dbc.core.binding

## Class BindMarkersFactoryResolver

- java.lang.Object
- - org.springframework.r2dbc.core.binding.BindMarkersFactoryResolver

-     public final class BindMarkersFactoryResolver
      extends Object

  Resolves a `BindMarkersFactory` from a `ConnectionFactory` using `BindMarkersFactoryResolver.BindMarkerFactoryProvider`. Dialect resolution uses Spring's `spring.factories` to determine available extensions.
  Since:
    5.3
  Author:
    Mark Paluch
  See Also:
    `BindMarkersFactory`, `SpringFactoriesLoader`

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static interface` | `BindMarkersFactoryResolver.BindMarkerFactoryProvider` SPI to extend Spring's default R2DBC BindMarkersFactory discovery mechanism.
    `static class` | `BindMarkersFactoryResolver.NoBindMarkersFactoryException` Exception thrown when `BindMarkersFactoryResolver` cannot resolve a `BindMarkersFactory`.

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static BindMarkersFactory` | `resolve(io.r2dbc.spi.ConnectionFactory connectionFactory)` Retrieve a `BindMarkersFactory` by inspecting `ConnectionFactory` and its metadata.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### resolve

          public static BindMarkersFactory resolve(io.r2dbc.spi.ConnectionFactory connectionFactory)

      Retrieve a `BindMarkersFactory` by inspecting `ConnectionFactory` and its metadata.
      Parameters:
        `connectionFactory` - the connection factory to inspect
      Returns:
        the resolved `BindMarkersFactory`
      Throws:
        `BindMarkersFactoryResolver.NoBindMarkersFactoryException` - if no `BindMarkersFactory` can be resolved