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