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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanResolve(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:
evaluatein 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:
canResolvein interfaceDisplayEvaluator- Parameters:
textKey- the key- Returns:
- does the resource exist?
-