public static class DataSourceLinkFactory.DataSourceHandler extends Object implements InvocationHandler
DataSource.getConnection() is called, it will invoke
DataSource.getConnection(String, String) with the preconfigured username and password.| Constructor and Description |
|---|
DataSourceLinkFactory.DataSourceHandler(DataSource ds,
String username,
String password) |
public DataSourceLinkFactory.DataSourceHandler(DataSource ds, String username, String password) throws Exception
Exceptionpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic Object unwrap(Class<?> iface) throws SQLException
SQLExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.