com.liferay.portal.dao.jdbc.aop
Class DynamicDataSourceTargetSource
java.lang.Object
com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTargetSource
- All Implemented Interfaces:
- org.springframework.aop.TargetClassAware, org.springframework.aop.TargetSource
public class DynamicDataSourceTargetSource
- extends java.lang.Object
- implements org.springframework.aop.TargetSource
View Source
- Author:
- Michael Young
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicDataSourceTargetSource
public DynamicDataSourceTargetSource()
getMethodStack
public java.util.Stack<java.lang.String> getMethodStack()
getOperation
public Operation getOperation()
getTarget
public java.lang.Object getTarget()
throws java.lang.Exception
- Specified by:
getTarget
in interface org.springframework.aop.TargetSource
- Throws:
java.lang.Exception
getTargetClass
public java.lang.Class<javax.sql.DataSource> getTargetClass()
- Specified by:
getTargetClass
in interface org.springframework.aop.TargetClassAware
- Specified by:
getTargetClass
in interface org.springframework.aop.TargetSource
isStatic
public boolean isStatic()
- Specified by:
isStatic
in interface org.springframework.aop.TargetSource
popMethod
public java.lang.String popMethod()
pushMethod
public void pushMethod(java.lang.String method)
releaseTarget
public void releaseTarget(java.lang.Object target)
throws java.lang.Exception
- Specified by:
releaseTarget
in interface org.springframework.aop.TargetSource
- Throws:
java.lang.Exception
setOperation
public void setOperation(Operation operation)
setReadDataSource
public void setReadDataSource(javax.sql.DataSource readDataSource)
setWriteDataSource
public void setWriteDataSource(javax.sql.DataSource writeDataSource)
inOperation
protected boolean inOperation()