public interface MessageRenderer<T>
Modifier and Type | Method and Description |
---|---|
T |
getValueFromFile(java.lang.String filename,
java.lang.String encoding,
boolean hasVariable,
com.github.benmanes.caffeine.cache.Cache<java.lang.Object,java.lang.Object> cache)
Read text from file, eventually replace variables, then convert it.
|
T |
getValueFromText(java.lang.String text)
Convert text to expected type
|
T getValueFromText(java.lang.String text)
text
- Text representing the typeT getValueFromFile(java.lang.String filename, java.lang.String encoding, boolean hasVariable, com.github.benmanes.caffeine.cache.Cache<java.lang.Object,java.lang.Object> cache)
filename
- name of the file to get the value fromencoding
- encoding of the filehasVariable
- flag, whether variables inside the value should be replacedcache
- Cache in which the raw values will be stored/read fromCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.