com.liferay.portal.dao.jdbc.util
Class DataSourceFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<javax.sql.DataSource>
com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<javax.sql.DataSource>, org.springframework.beans.factory.InitializingBean
public class DataSourceFactoryBean
- extends org.springframework.beans.factory.config.AbstractFactoryBean<javax.sql.DataSource>
View Source
- Author:
- Brian Wing Shun Chan
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
logger |
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceFactoryBean
public DataSourceFactoryBean()
createInstance
public javax.sql.DataSource createInstance()
throws java.lang.Exception
- Specified by:
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<javax.sql.DataSource>
- Throws:
java.lang.Exception
destroyInstance
public void destroyInstance(javax.sql.DataSource dataSource)
throws java.lang.Exception
- Overrides:
destroyInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<javax.sql.DataSource>
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class<javax.sql.DataSource> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean<javax.sql.DataSource>
- Specified by:
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean<javax.sql.DataSource>
setProperties
public void setProperties(java.util.Properties properties)
setPropertyPrefix
public void setPropertyPrefix(java.lang.String propertyPrefix)
setPropertyPrefixLookup
public void setPropertyPrefixLookup(java.lang.String propertyPrefixLookup)
createDataSourceC3PO
protected javax.sql.DataSource createDataSourceC3PO(java.util.Properties properties)
throws java.lang.Exception
- Throws:
java.lang.Exception
createDataSourceDBCP
protected javax.sql.DataSource createDataSourceDBCP(java.util.Properties properties)
throws java.lang.Exception
- Throws:
java.lang.Exception
createDataSourcePrimrose
protected javax.sql.DataSource createDataSourcePrimrose(java.util.Properties properties)
throws java.lang.Exception
- Throws:
java.lang.Exception