@ConfigRoot(name="datasource", phase=BUILD_AND_RUN_TIME_FIXED) public class DataSourcesBuildTimeConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
DataSourceBuildTimeConfig |
defaultDataSource
The default datasource.
|
Optional<String> |
driver
Deprecated.
|
boolean |
healthEnabled
Whether or not an health check is published in case the smallrye-health extension is present.
|
boolean |
metricsEnabled
Whether or not datasource metrics are published in case a metrics extension is present.
|
Map<String,DataSourceBuildTimeConfig> |
namedDataSources
Additional named datasources.
|
Optional<String> |
url
Deprecated.
|
| Constructor and Description |
|---|
DataSourcesBuildTimeConfig() |
| Modifier and Type | Method and Description |
|---|---|
DataSourceBuildTimeConfig |
getDataSourceRuntimeConfig(String dataSourceName) |
@ConfigItem(name="<<parent>>") public DataSourceBuildTimeConfig defaultDataSource
@ConfigDocSection @ConfigDocMapKey(value="datasource-name") @ConfigItem(name="<<parent>>") public Map<String,DataSourceBuildTimeConfig> namedDataSources
@ConfigItem(name="health.enabled", defaultValue="true") public boolean healthEnabled
This is a global setting and is not specific to a datasource.
@ConfigItem(name="metrics.enabled") public boolean metricsEnabled
This is a global setting and is not specific to a datasource.
NOTE: This is different from the "jdbc.enable-metrics" property that needs to be set on the JDBC datasource level to enable collection of metrics for that datasource.
@Deprecated public Optional<String> url
This used to be runtime but we don't really care, we just want to catch invalid configurations.
@Deprecated public Optional<String> driver
public DataSourceBuildTimeConfig getDataSourceRuntimeConfig(String dataSourceName)
Copyright © 2021 JBoss by Red Hat. All rights reserved.