
com.day.commons.datasource.poolservice.DataSourcePoolProvider Maven / Gradle / Ivy
/* Copyright 1997-2006 Day Management AG
* Barfuesserplatz 6, 4001 Basel, Switzerland
* All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Day Management AG, ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Day.
*/
package com.day.commons.datasource.poolservice;
/**
* Used by DataSourcePool to provide data sources of
* a single type (for example a JDBC DataSource or an
* LDAPDataSource).
*/
public interface DataSourcePoolProvider {
/**
* Return the named data source, if available
*
* @param name Configured name of the data source
* @return a data source Object, null if not found
*/
Object getDataSource(String name);
/**
* Returns the names of data sources
* @return the names
*/
String[] getNames();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy