Package io.micronaut.jdbc.spring
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 java.lang.Object implements DataSourceResolver
Unwraps spring data source proxies.- Since:
- 1.0
- Author:
- graemerocher
-
-
Field Summary
-
Fields inherited from interface io.micronaut.jdbc.DataSourceResolver
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description SpringDataSourceResolver()
-
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.
-
-
-
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 interfaceDataSourceResolver
- Parameters:
dataSource
- The data source- Returns:
- The unwrapped datasource
-
-