Class DataSourceSetupRule
- java.lang.Object
-
- com.atlassian.confluence.impl.health.checks.rules.AbstractHealthCheckRule
-
- com.atlassian.confluence.impl.health.checks.rules.DataSourceSetupRule
-
- All Implemented Interfaces:
HealthCheckRule
public final class DataSourceSetupRule extends AbstractHealthCheckRule
AHealthCheckRule
which checks to see if Hibernate is configured to use a JNDI DataSource, and to log a Johnson warning if so.- Since:
- 8.0
-
-
Constructor Summary
Constructors Constructor Description DataSourceSetupRule(ErrorMessageProvider errorMessageProvider, DataSourceConfiguration dataSourceConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Optional<String>
doValidation()
-
Methods inherited from class com.atlassian.confluence.impl.health.checks.rules.AbstractHealthCheckRule
getErrorMessage, getFailureEvent, validate
-
-
-
-
Constructor Detail
-
DataSourceSetupRule
public DataSourceSetupRule(ErrorMessageProvider errorMessageProvider, DataSourceConfiguration dataSourceConfiguration)
-
-
Method Detail
-
doValidation
protected Optional<String> doValidation()
- Specified by:
doValidation
in classAbstractHealthCheckRule
-
-