public class DataSourceProvider
extends java.lang.Object
implements com.google.inject.Provider<javax.sql.DataSource>, com.google.gerrit.extensions.events.LifecycleListener
| Modifier and Type | Class and Description |
|---|---|
static class |
DataSourceProvider.Context |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_POOL_LIMIT |
| Modifier | Constructor and Description |
|---|---|
protected |
DataSourceProvider(org.eclipse.jgit.lib.Config cfg,
DataSourceProvider.Context ctx,
DataSourceType dst) |
| Modifier and Type | Method and Description |
|---|---|
javax.sql.DataSource |
get() |
void |
start() |
void |
stop() |
public static final int DEFAULT_POOL_LIMIT
@Inject
protected DataSourceProvider(org.eclipse.jgit.lib.Config cfg,
DataSourceProvider.Context ctx,
DataSourceType dst)
public javax.sql.DataSource get()
get in interface javax.inject.Provider<javax.sql.DataSource>public void start()
start in interface com.google.gerrit.extensions.events.LifecycleListenerpublic void stop()
stop in interface com.google.gerrit.extensions.events.LifecycleListener