![JAR search and dependency download from the Maven repository](/logo.png)
com.avaje.ebeaninternal.server.transaction.DataSourceSupplier Maven / Gradle / Ivy
package com.avaje.ebeaninternal.server.transaction;
import javax.sql.DataSource;
/**
* Supply the DataSource to the transaction manager.
*
* Implementations can support multi-tenancy via DB or SCHEMA.
*
*/
public interface DataSourceSupplier {
/**
* Return the DataSource to use for the current request.
*
* This should take into account multi-tenancy and the current tenantId.
*
*/
DataSource getDataSource();
/**
* Shutdown the datasource de-registering the JDBC driver if requested.
*/
void shutdown(boolean deregisterDriver);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy