public abstract class DriverInfo extends Object
For each detectable JDBC driver, a subclass should be created.
Each subclass should be marked as a Singleton, due
to the fact that state is retained as to if the driver has or has not
been detected.
| Modifier | Constructor and Description |
|---|---|
protected |
DriverInfo(String name,
String moduleIdentifier,
String detectableClassName,
String... optionalClassNames) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addModuleDependencies(org.jboss.modules.ModuleSpec.Builder builder) |
protected abstract void |
configureDefaultDS(org.wildfly.swarm.config.datasources.DataSource datasource) |
protected void |
configureDriver(org.wildfly.swarm.config.datasources.JDBCDriver driver) |
boolean |
detect(DatasourcesFraction fraction) |
protected String |
getPlatformPath(String path) |
void |
installDatasource(DatasourcesFraction fraction,
String dsName,
org.wildfly.swarm.config.datasources.DataSourceConsumer config) |
boolean |
isInstalled() |
protected boolean |
isWindows() |
String |
name() |
String |
toString() |
public String name()
protected void configureDriver(org.wildfly.swarm.config.datasources.JDBCDriver driver)
protected void addModuleDependencies(org.jboss.modules.ModuleSpec.Builder builder)
protected abstract void configureDefaultDS(org.wildfly.swarm.config.datasources.DataSource datasource)
public boolean detect(DatasourcesFraction fraction)
protected boolean isWindows()
public boolean isInstalled()
public void installDatasource(DatasourcesFraction fraction, String dsName, org.wildfly.swarm.config.datasources.DataSourceConsumer config)
Copyright © 2018 JBoss by Red Hat. All rights reserved.