Package org.hawaiiframework.sql
Class DataSourceProxyFactory
java.lang.Object
org.hawaiiframework.sql.DataSourceProxyFactory
Factory to create a datasource proxy with listeners.
-
Constructor Summary
ConstructorsConstructorDescriptionDataSourceProxyFactory
(List<OrderedQueryExecutionListener> listeners) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionproxy
(DataSource target) Creates a data source proxy for thetarget
iff there are listeners.
-
Constructor Details
-
DataSourceProxyFactory
The constructor.- Parameters:
listeners
- The listeners to use in the data source proxy.
-
-
Method Details
-
proxy
Creates a data source proxy for thetarget
iff there are listeners. Otherwise it will return the target itself.- Parameters:
target
- The data source to create a proxy for.- Returns:
- The data source to use.
-