public class ReflectionDatabaseConnectionProxyFactory extends Object implements DatabaseConnectionProxyFactory
DatabaseConnection object.| Constructor and Description |
|---|
ReflectionDatabaseConnectionProxyFactory(Class<? extends DatabaseConnection> proxyClass)
Takes a proxy-class that will be used to instantiate an instance in
createProxy(DatabaseConnection). |
| Modifier and Type | Method and Description |
|---|---|
DatabaseConnection |
createProxy(DatabaseConnection realConnection)
Create a proxy database connection that may extend
DatabaseConnectionProxy. |
public ReflectionDatabaseConnectionProxyFactory(Class<? extends DatabaseConnection> proxyClass) throws IllegalArgumentException
createProxy(DatabaseConnection).IllegalArgumentException - if the class does not have a constructor that takes a DatabaseConnection object.public DatabaseConnection createProxy(DatabaseConnection realConnection) throws SQLException
DatabaseConnectionProxyFactoryDatabaseConnectionProxy. This method should
instantiate the proxy and set the real-connection on it.createProxy in interface DatabaseConnectionProxyFactorySQLExceptionThis documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.