Class TextResourceDisplayEvaluator
java.lang.Object
ch.tocco.nice2.textresources.impl.model.TextResourceDisplayEvaluator
- All Implemented Interfaces:
DisplayEvaluator
,TextResourceDisplayAndReporter
@Component
public final class TextResourceDisplayEvaluator
extends Object
implements TextResourceDisplayAndReporter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canResolve
(String textKey) This method tries to resolve a resourceThis method tries to resolve the resource and at the same time marks the resource as needed (when not already happened) and delays the missing report.
-
Constructor Details
-
TextResourceDisplayEvaluator
-
-
Method Details
-
evaluate
This method tries to resolve the resource and at the same time marks the resource as needed (when not already happened) and delays the missing report.- Specified by:
evaluate
in interfaceDisplayEvaluator
- Parameters:
textKey
- the key- Returns:
- the key or a representation if missing
- See Also:
-
canResolve
This method tries to resolve a resource For definitive resolve process seeevaluate(String)
- Specified by:
canResolve
in interfaceDisplayEvaluator
- Parameters:
textKey
- the key- Returns:
- does the resource exist?
-