Interface IConfigProblemCatcher
public interface IConfigProblemCatcher
Catches problems which occur during processing of configuration files stored in repository.
- Since:
- 3.1.2
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceProblem.static enumProblem severity. -
Method Summary
Modifier and TypeMethodDescriptionvoidForgets all problems.voidclearProblems(ILocation location) Forgets all problems for given location.voidfinishCatching(ILocation location) Ends catching sequence.Returns list of problematic locations.getProblems(ILocation location) Returns problems for given location.voidreportProblem(ILocation location, IConfigProblemCatcher.Severity severity, String message, Throwable throwable) Report problem in configuration file.voidstartCatching(ILocation location) Begins catching sequence.
-
Method Details
-
startCatching
Begins catching sequence.Catching sequence MUST end with
finishCatching(ILocation).Allowed to be called only by
IDataHandlers.- Parameters:
location- location (can benull)- See Also:
-
reportProblem
void reportProblem(ILocation location, IConfigProblemCatcher.Severity severity, String message, Throwable throwable) Report problem in configuration file.startCatching(ILocation)with the same location *MUST* be called first.Allowed to be called only by
IDataHandlers.- Parameters:
location- location ornullfor problem for which the exact origin is unknownseverity- severity (notnull)message- problem description ornullthrowable- exception ornull- See Also:
-
finishCatching
Ends catching sequence.Catching sequence MUST start with
startCatching(ILocation).Replaces all previous problems for given location with new problems (if any) gathered during the catching sequence.
Allowed to be called only by
IDataHandlers.- Parameters:
location- location (can benull)- See Also:
-
clearProblems
void clearProblems()Forgets all problems.Does not influence any running catching sequences.
-
clearProblems
Forgets all problems for given location.Does not influence any running catching sequences.
- Parameters:
location- location (can benull)
-
getProblematicLocations
Collection<ILocation> getProblematicLocations()Returns list of problematic locations.Does not return problems reported during not-yet-finished catching sequences.
- Returns:
- locations with problems (not
null)
-
getProblems
Returns problems for given location.Does not return problems reported during not-yet-finished catching sequences.
- Parameters:
location- location (can benull)- Returns:
- problems (not
null)
-