@ApplicationScoped @Named(value="DBCPDataSourceProvider") public class DBCPDataSourceProvider extends Object implements DataSourceProvider
| Constructor and Description |
|---|
DBCPDataSourceProvider() |
DBCPDataSourceProvider(DBCPDriverProvider driverProvider,
MavenArtifactResolver artifactResolver) |
| Modifier and Type | Method and Description |
|---|---|
protected URLConnectionFactory |
buildConnectionFactory(URI uri,
String driverClass,
String connectionURL,
Properties connectionProperties)
facilitates tests programming.
|
DataSourceDeploymentInfo |
deploy(DataSourceDef dataSourceDef) |
DataSourceDeploymentInfo |
getDeploymentInfo(String uuid) |
List<DataSourceDef> |
getDeployments() |
List<DataSourceDeploymentInfo> |
getDeploymentsInfo() |
void |
hasStarted() |
void |
loadConfig(Properties properties) |
DataSource |
lookupDataSource(DataSourceDeploymentInfo deploymentInfo) |
DataSourceDeploymentInfo |
resync(DataSourceDef dataSourceDef,
DataSourceDeploymentInfo deploymentInfo) |
void |
undeploy(DataSourceDeploymentInfo deploymentInfo) |
public DBCPDataSourceProvider()
@Inject public DBCPDataSourceProvider(DBCPDriverProvider driverProvider, MavenArtifactResolver artifactResolver)
public DataSourceDeploymentInfo deploy(DataSourceDef dataSourceDef) throws Exception
deploy in interface DataSourceProviderExceptionpublic DataSourceDeploymentInfo resync(DataSourceDef dataSourceDef, DataSourceDeploymentInfo deploymentInfo) throws Exception
resync in interface DataSourceProviderExceptionpublic void undeploy(DataSourceDeploymentInfo deploymentInfo) throws Exception
undeploy in interface DataSourceProviderExceptionpublic DataSourceDeploymentInfo getDeploymentInfo(String uuid) throws Exception
getDeploymentInfo in interface DataSourceProviderExceptionpublic List<DataSourceDeploymentInfo> getDeploymentsInfo() throws Exception
getDeploymentsInfo in interface DataSourceProviderExceptionpublic List<DataSourceDef> getDeployments() throws Exception
getDeployments in interface DataSourceProviderExceptionpublic void loadConfig(Properties properties)
loadConfig in interface DataSourceProviderpublic DataSource lookupDataSource(DataSourceDeploymentInfo deploymentInfo) throws Exception
lookupDataSource in interface DataSourceProviderExceptionpublic void hasStarted()
throws Exception
hasStarted in interface DataSourceProviderExceptionprotected URLConnectionFactory buildConnectionFactory(URI uri, String driverClass, String connectionURL, Properties connectionProperties) throws Exception
ExceptionCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.