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
Exception
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public Object unwrap(Class<?> iface) throws SQLException
SQLException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.