DataSourceUnwrapper

Unwraps a DataSource that may have been proxied or wrapped in a custom Wrapper such as DelegatingDataSource.

Author

Tadaya Tsuyukubo

Stephane Nicoll

Since

2.0.7

Functions

Link copied to clipboard
open fun <T> unwrap(dataSource: DataSource, target: Class<T>): T
Return an object that implements the given target type, unwrapping delegate or proxy if necessary.
open fun <I, T : I?> unwrap(dataSource: DataSource, unwrapInterface: Class<I>, target: Class<T>): T
Return an object that implements the given target type, unwrapping delegate or proxy if necessary using the specified unwrapInterface.