public abstract class ConditionReporter<C extends ExecutionContext<?>> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ConditionReporter(C context)
Creates a new ConditionReporter instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doFor(String context,
Runnable action)
Performs the given action within the specified context.
|
protected C |
getContext()
Returns the execution context for this reporter.
|
protected Notifier |
getNotifier()
Returns the condition notifier for this reporter.
|
protected void |
notifyError(String reason,
String resolution)
Reports an error condition
|
protected void |
notifyWarning(String reason)
Reports a warning condition
|
protected <T> T |
resultFor(String context,
Supplier<T> supplier)
Returns the result of the given supplier within the specified context.
|
protected void |
setNotifier(Notifier notifier)
Changes the condition notifier for this reporter.
|
protected ConditionReporter(C context)
protected void setNotifier(Notifier notifier)
protected Notifier getNotifier()
protected C getContext()
protected void notifyWarning(String reason)
protected <T> T resultFor(String context, Supplier<T> supplier)
Copyright © 2020 The Cornutum Project. All rights reserved.