Interface DisplayEvaluator
- All Known Subinterfaces:
TextResourceDisplayAndReporter
- All Known Implementing Classes:
ConstantDisplayEvalutor
,TextResourceDisplayEvaluator
public interface DisplayEvaluator
Evaluate an abstract display-value to a concrete text at runtime.
The implementations has to be THREAD-SAFE!
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canResolve
(String toEvaluate) Return if this display-value can be evaluated.Evaluate the resource and return it as string
-
Method Details
-
evaluate
Evaluate the resource and return it as string- Parameters:
toEvaluate
- the resource-identifier @return the resource, non-null- Returns:
- text, non-null
-
canResolve
Return if this display-value can be evaluated. If it cannot, theevaluate(String)
-Method still has to return a string. This will may be called allready during the configuration-reading process and out of the evaluation-context. So this method cannot expect a 'real'-evaluation-context to evaluate in.- Returns:
- true/false
-