public class DataSourceInvocationHandler extends CommonDataSourceInvocationHandler<javax.sql.DataSource>
AbstractInvocationHandler.SimpleInvoker
cluster, logger
Constructor and Description |
---|
DataSourceInvocationHandler(DatabaseCluster<javax.sql.DataSource> databaseCluster) |
Modifier and Type | Method and Description |
---|---|
protected InvocationStrategy<javax.sql.DataSource,javax.sql.DataSource,?> |
getInvocationStrategy(javax.sql.DataSource dataSource,
java.lang.reflect.Method method,
java.lang.Object[] parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
isRecordable
close, createObject, getRoot
addChild, detectClusterPanic, entries, entry, getDatabaseCluster, getInvoker, getObject, handleFailure, handleFailures, handlePartialFailure, invoke, isSQLMethod, postInvoke, record, removeChild, removeChildren, replay, retain
public DataSourceInvocationHandler(DatabaseCluster<javax.sql.DataSource> databaseCluster)
databaseCluster
- protected InvocationStrategy<javax.sql.DataSource,javax.sql.DataSource,?> getInvocationStrategy(javax.sql.DataSource dataSource, java.lang.reflect.Method method, java.lang.Object[] parameters) throws java.lang.Exception
AbstractInvocationHandler
InvocationStrategy
for the specified method.
This implementation detects Wrapper
methods; and Object.equals(java.lang.Object)
, Object.hashCode()
, and Object.toString()
.
Default invocation strategy is DatabaseWriteInvocationStrategy
.getInvocationStrategy
in class CommonDataSourceInvocationHandler<javax.sql.DataSource>
dataSource
- the proxied objectmethod
- the method to invokeparameters
- the method invocation parametersjava.lang.Exception
AbstractInvocationHandler.getInvocationStrategy(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])