public abstract class AbstractCheck extends Object implements ICheck, IConfigurationAware
| Modifier and Type | Field and Description | 
|---|---|
protected static int | 
FATAL  | 
protected static int | 
OK  | 
protected static int | 
WARN  | 
| Constructor and Description | 
|---|
AbstractCheck()  | 
| Modifier and Type | Method and Description | 
|---|---|
ICheckResult | 
checkStatus()
Deprecated. 
 
use  
checkStatus(Locale) instead. | 
ICheckResult | 
checkStatus(Locale locale)
This method must be overriden and implemented by Checks. 
 | 
protected ICheckResult | 
createResult(int code)
Deprecated. 
 
use  
CheckResultBuilder instead. | 
Properties | 
getConfiguration()  | 
protected CheckResultBuilder | 
result()
Create a generic result. name and group are NOT set and it's up to the
 caller to call  
CheckResultBuilder.from(ICheck) | 
protected CheckResultBuilder | 
result(ICheck check)
Create a generic result. 
 | 
void | 
setConfiguration(Properties configuration)  | 
protected static final int FATAL
protected static final int OK
protected static final int WARN
@Deprecated public ICheckResult checkStatus()
checkStatus(Locale) instead.public ICheckResult checkStatus(Locale locale)
 Note: default implementation ensure compatibility with old check by
 calling checkStatus()
checkStatus in interface IChecklocale - locale to used for description and resolution steps.@Deprecated protected ICheckResult createResult(int code)
CheckResultBuilder instead.ICheckResult.setDescription(String) and
 ICheckResult.setResolutionSteps(String).public Properties getConfiguration()
protected CheckResultBuilder result()
CheckResultBuilder.from(ICheck)protected CheckResultBuilder result(ICheck check)
 - public void setConfiguration(Properties configuration)
setConfiguration in interface IConfigurationAwareCopyright © 2010–2016. All rights reserved.