Class DataSourceFactoryBean

Object
org.springframework.beans.factory.config.AbstractFactoryBean<DataSource>
com.liferay.portal.dao.jdbc.spring.DataSourceFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<DataSource>, org.springframework.beans.factory.InitializingBean

public class DataSourceFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<DataSource>
Author:
Brian Wing Shun Chan
  • Constructor Details

    • DataSourceFactoryBean

      public DataSourceFactoryBean()
  • Method Details

    • createInstance

      public DataSource createInstance() throws Exception
      Specified by:
      createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<DataSource>
      Throws:
      Exception
    • destroyInstance

      public void destroyInstance(DataSource dataSource) throws Exception
      Overrides:
      destroyInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<DataSource>
      Throws:
      Exception
    • getObjectType

      public Class<DataSource> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<DataSource>
      Specified by:
      getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<DataSource>
    • setDataSource

      public void setDataSource(DataSource dataSource)
    • setProperties

      public void setProperties(Properties properties)
    • setPropertyPrefix

      public void setPropertyPrefix(String propertyPrefix)
    • setPropertyPrefixLookup

      public void setPropertyPrefixLookup(String propertyPrefixLookup)