Class DataSourceFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<DataSource>, org.springframework.beans.factory.InitializingBean

    public class DataSourceFactoryBean
    extends Object
    implements org.springframework.beans.factory.FactoryBean<DataSource>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

    DataSourceFactoryBean class.

    • Constructor Detail

      • DataSourceFactoryBean

        public DataSourceFactoryBean()
    • Method Detail

      • getObjectType

        public Class<? extends DataSource> getObjectType()

        getObjectType

        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<DataSource>
        Returns:
        a Class object.
      • isSingleton

        public boolean isSingleton()

        isSingleton

        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean<DataSource>
        Returns:
        a boolean.
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception

        afterPropertiesSet

        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception - if any.
      • destroy

        public void destroy()
                     throws Exception

        destroy

        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Throws:
        Exception - if any.