Class SpringDataSourceResolver

java.lang.Object
io.micronaut.jdbc.spring.SpringDataSourceResolver
All Implemented Interfaces:
DataSourceResolver

@Singleton @Internal @Requires(classes=org.springframework.jdbc.datasource.DelegatingDataSource.class) public final class SpringDataSourceResolver extends Object implements DataSourceResolver
Unwraps spring data source proxies.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • SpringDataSourceResolver

      public SpringDataSourceResolver()
  • Method Details

    • resolve

      public DataSource resolve(DataSource dataSource)
      Description copied from interface: DataSourceResolver
      Resolves the underlying target data source in the case it has been wrapped by proxying / instrumentation logic.
      Specified by:
      resolve in interface DataSourceResolver
      Parameters:
      dataSource - The data source
      Returns:
      The unwrapped datasource