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 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
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(DataSource dataSource) Resolves the underlying target data source in the case it has been wrapped by proxying / instrumentation logic.
-
Constructor Details
-
SpringDataSourceResolver
public SpringDataSourceResolver()
-
-
Method Details
-
resolve
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
-