001package org.avaje.datasource;
002
003/**
004 * Factory that creates DataSourcePool's.
005 */
006public interface DataSourceFactory {
007
008  /**
009   * Create the DataSourcePool with the given configuration.
010   *
011   * @param name   The name of the pool.
012   * @param config The configuration options.
013   * @return The created DataSourcePool
014   */
015  DataSourcePool createPool(String name, DataSourceConfig config);
016}