接口 Wrapped
-
- 所有已知实现类:
AbstractDataSourceBasedMultiTenantConnectionProviderImpl,AbstractMultiTenantConnectionProvider,DataSourceBasedMultiTenantConnectionProviderImpl,DatasourceConnectionProviderImpl,DriverManagerConnectionProviderImpl,HikariCPConnectionProvider,UserSuppliedConnectionProviderImpl
public interface WrappedOptional contract for services that wrap stuff that to which it is useful to have access. For example, a service that maintains aDataSourcemight want to expose access to theDataSourceor itsConnectioninstances.- 作者:
- Steve Ebersole
-
-
方法详细资料
-
isUnwrappableAs
boolean isUnwrappableAs(Class unwrapType)
Can this wrapped service be unwrapped as the indicated type?- 参数:
unwrapType- The type to check.- 返回:
- True/false.
-
unwrap
<T> T unwrap(Class<T> unwrapType)
Unproxy the service proxy- 参数:
unwrapType- The java type as which to unwrap this instance.- 返回:
- The unwrapped reference
- 抛出:
UnknownUnwrapTypeException- if the service cannot be unwrapped as the indicated type
-
-