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
Modifier and TypeInterfaceDescriptionstatic interface
Problem.static enum
Problem severity. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Forgets all problems.void
clearProblems
(ILocation location) Forgets all problems for given location.void
finishCatching
(ILocation location) Ends catching sequence.Returns list of problematic locations.getProblems
(ILocation location) Returns problems for given location.void
reportProblem
(ILocation location, IConfigProblemCatcher.Severity severity, String message, Throwable throwable) Report problem in configuration file.void
startCatching
(ILocation location) Begins catching sequence.
-
Method Details
-
startCatching
Begins catching sequence.Catching sequence MUST end with
finishCatching(ILocation)
.Allowed to be called only by
IDataHandler
s.- 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
IDataHandler
s.- Parameters:
location
- location ornull
for problem for which the exact origin is unknownseverity
- severity (notnull
)message
- problem description ornull
throwable
- 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
IDataHandler
s.- 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
)
-