View Javadoc

    1   /***
    2    * JFoxSOAF, Service-Oriented Application Framework
    3    *
    4    * Copyright (C) www.huihoo.org
    5    *
    6    * Distributable under GNU LGPL
    7    *
    8    * For more information, please visit: http://www.huihoo.org/jfox/jfoxsoaf
    9    */
    10
    11  package org.huihoo.jfox.soaf.services.jdbc;
    12
    13  import javax.sql.DataSource;
    14
    15  import org.huihoo.jfox.soaf.exception.DataSourceConfigurationException;
    16  import org.huihoo.jfox.soaf.exception.ServiceLocatorException;
    17
    18  /***
    19   * Database datasource serivce.
    20   *
    21   * @author <a href="mailto:founder_chen@yahoo.com.cn">Peter Cheng </a>
    22   * @version $Revision: 1.1 $ $Date: 2004/10/28 15:12:16 $
    23   * @version Revision: 1.0
    24   */
    25
    26  public interface DataSourceService {
    27
    28      /***
    29       * Get datasource from Container or local database connection pool.
    30       */
    31      public DataSource getDataSource(String dataSourceName)
    32              throws DataSourceConfigurationException, ServiceLocatorException;
    33
    34  }