Liferay 6.0.5

com.liferay.portal.dao.jdbc.aop
Class DynamicDataSourceTargetSource

java.lang.Object
  extended by com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTargetSource
All Implemented Interfaces:
org.springframework.aop.TargetClassAware, org.springframework.aop.TargetSource

public class DynamicDataSourceTargetSource
extends Object
implements org.springframework.aop.TargetSource


Constructor Summary
DynamicDataSourceTargetSource()
           
 
Method Summary
 Stack<String> getMethodStack()
           
 Operation getOperation()
           
 Object getTarget()
           
 Class<DataSource> getTargetClass()
           
protected  boolean inOperation()
           
 boolean isStatic()
           
 String popMethod()
           
 void pushMethod(String method)
           
 void releaseTarget(Object target)
           
 void setOperation(Operation operation)
           
 void setReadDataSource(DataSource readDataSource)
           
 void setWriteDataSource(DataSource writeDataSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicDataSourceTargetSource

public DynamicDataSourceTargetSource()
Method Detail

getMethodStack

public Stack<String> getMethodStack()

getOperation

public Operation getOperation()

getTarget

public Object getTarget()
                 throws Exception
Specified by:
getTarget in interface org.springframework.aop.TargetSource
Throws:
Exception

getTargetClass

public Class<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 String popMethod()

pushMethod

public void pushMethod(String method)

releaseTarget

public void releaseTarget(Object target)
                   throws Exception
Specified by:
releaseTarget in interface org.springframework.aop.TargetSource
Throws:
Exception

setOperation

public void setOperation(Operation operation)

setReadDataSource

public void setReadDataSource(DataSource readDataSource)

setWriteDataSource

public void setWriteDataSource(DataSource writeDataSource)

inOperation

protected boolean inOperation()

Liferay 6.0.5