Liferay 6.0.5

com.liferay.portal.dao.shard
Class ShardDataSourceTargetSource

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

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


Constructor Summary
ShardDataSourceTargetSource()
           
 
Method Summary
 DataSource getDataSource()
           
 Object getTarget()
           
 Class<DataSource> getTargetClass()
           
 boolean isStatic()
           
 void releaseTarget(Object target)
           
 void setDataSource(String shardName)
           
 void setDataSources(Map<String,DataSource> dataSources)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShardDataSourceTargetSource

public ShardDataSourceTargetSource()
Method Detail

getDataSource

public DataSource getDataSource()

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

releaseTarget

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

setDataSource

public void setDataSource(String shardName)

setDataSources

public void setDataSources(Map<String,DataSource> dataSources)

Liferay 6.0.5