Class PoolingDataSourceFactory

All Implemented Interfaces:
IDataSourceFactory, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
AbstractXADataSourceFactory

public class PoolingDataSourceFactory extends DataSourceFactory
Factory through which (TX-enabled) Pooling DataSources can be retrieved. Already created DataSources are stored in a ConcurrentHashMap. Every DataSource can be augmented before it is added.
  • Field Details

    • minIdle

      protected int minIdle
    • maxPoolSize

      protected int maxPoolSize
    • maxIdle

      protected int maxIdle
    • maxLifeTime

      protected int maxLifeTime
    • connectionCheckInterval

      protected int connectionCheckInterval
    • testQuery

      protected String testQuery
  • Constructor Details

    • PoolingDataSourceFactory

      public PoolingDataSourceFactory()
  • Method Details

    • augmentDatasource

      protected DataSource augmentDatasource(CommonDataSource dataSource, String dataSourceName)
      Description copied from class: DataSourceFactory
      Allow implementing classes to augment the DataSource. See DataSourceFactory.augment(CommonDataSource, String).
      Overrides:
      augmentDatasource in class DataSourceFactory
    • createPool

      protected DataSource createPool(DataSource dataSource, String dataSourceName)
    • createConnectionPool

      protected org.apache.tomcat.dbcp.pool2.impl.GenericObjectPool<org.apache.tomcat.dbcp.dbcp2.PoolableConnection> createConnectionPool(org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory poolableConnectionFactory)
    • getMinIdle

      public int getMinIdle()
    • setMinIdle

      public void setMinIdle(int minIdle)
    • getMaxPoolSize

      public int getMaxPoolSize()
    • setMaxPoolSize

      public void setMaxPoolSize(int maxPoolSize)
    • getMaxIdle

      public int getMaxIdle()
    • setMaxIdle

      public void setMaxIdle(int maxIdle)
    • getMaxLifeTime

      public int getMaxLifeTime()
    • setMaxLifeTime

      public void setMaxLifeTime(int maxLifeTime)
    • getConnectionCheckInterval

      public int getConnectionCheckInterval()
    • setConnectionCheckInterval

      public void setConnectionCheckInterval(int connectionCheckInterval)
    • getTestQuery

      public String getTestQuery()
    • setTestQuery

      public void setTestQuery(String testQuery)