Class SpringDataSourceResolver

  • All Implemented Interfaces:
    DataSourceResolver

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.sql.DataSource resolve​(javax.sql.DataSource dataSource)
      Resolves the underlying target data source in the case it has been wrapped by proxying / instrumentation logic.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpringDataSourceResolver

        public SpringDataSourceResolver()
    • Method Detail

      • resolve

        public javax.sql.DataSource resolve​(javax.sql.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