@Override
public void validate() throws ValidateException
{
if (this.backgroundValidationMillis != null && this.backgroundValidationMillis < 0)
throw new ValidateException(
bundle.invalidNegative(Validation.Tag.BACKGROUND_VALIDATION_MILLIS.getLocalName()));
if (this.validConnectionChecker != null)
try
{
this.validConnectionChecker.validate();
}
catch (ValidateException ve)
{
throw new ValidateException(bundle.invalidTag(Validation.Tag.VALID_CONNECTION_CHECKER.getLocalName()), ve);
}
if (this.exceptionSorter != null)
try
{
this.exceptionSorter.validate();
}
catch (ValidateException ve)
{
throw new ValidateException(bundle.invalidTag(Validation.Tag.EXCEPTION_SORTER.getLocalName()), ve);
}
if (this.staleConnectionChecker != null)
try
{
this.staleConnectionChecker.validate();
}
catch (ValidateException ve)
{
throw new ValidateException(bundle.invalidTag(Validation.Tag.STALE_CONNECTION_CHECKER.getLocalName()), ve);
}
}