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