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 |
---|
DataSourceHandler(DataSource ds,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
Object |
unwrap(Class<?> iface) |
public 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-2016 Apache Software Foundation. All Rights Reserved.