Interface Validator
-
- All Known Implementing Classes:
ConnectionFactoryValidator,DataSourceValidator,NonFailFastValidator
public interface ValidatorUsed to determine whether a Data Connector initialized properly and continues to be fit for use.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisThrowValidateError()Returns whethervalidate()should throw or log errors.voidsetThrowValidateError(boolean what)Sets whethervalidate()should throw or log errors.voidvalidate()Probe the data connector and conditionally fails if it is not valid and ready for use.
-
-
-
Method Detail
-
validate
void validate() throws ValidationExceptionProbe the data connector and conditionally fails if it is not valid and ready for use.- Throws:
ValidationException- thrown if validation fails andisThrowValidateError()is true
-
setThrowValidateError
void setThrowValidateError(boolean what)
Sets whethervalidate()should throw or log errors.- Parameters:
what- whethervalidate()should throw or log errors
-
isThrowValidateError
boolean isThrowValidateError()
Returns whethervalidate()should throw or log errors.- Returns:
- whether
validate()should throw or log errors
-
-