public final class DataSourceUnwrapper extends Object
DataSource
that may have been proxied or wrapped in a custom
Wrapper
such as DelegatingDataSource
.Modifier and Type | Method and Description |
---|---|
static <T> T |
unwrap(DataSource dataSource,
Class<T> target)
Return an object that implements the given
target type, unwrapping delegate
or proxy if necessary. |
public static <T> T unwrap(DataSource dataSource, Class<T> target)
target
type, unwrapping delegate
or proxy if necessary.T
- the target typedataSource
- the datasource to handletarget
- the type that the result must implementnull
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.