com.alibaba.druid.pool
Class WrapperAdapter

java.lang.Object
  extended by com.alibaba.druid.pool.WrapperAdapter
All Implemented Interfaces:
Wrapper
Direct Known Subclasses:
DataSourceAdapter, DruidAbstractDataSource

public class WrapperAdapter
extends Object
implements Wrapper


Constructor Summary
WrapperAdapter()
           
 
Method Summary
 boolean isWrapperFor(Class<?> iface)
           
<T> T
unwrap(Class<T> iface)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperAdapter

public WrapperAdapter()
Method Detail

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
                     throws SQLException
Specified by:
isWrapperFor in interface Wrapper
Throws:
SQLException

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException
Specified by:
unwrap in interface Wrapper
Throws:
SQLException


Copyright © 2012 Alibaba Group. All Rights Reserved.