I would like to save the source for the html select blocks in the configuration file. They contain long lines that often do not change (but sometimes do):
- Lorem ipsum sit amet nr. one
- Lorem ipsum sit amet nr. 2
- Lorem ipsum sit amet nr. 3
- Lorem ipsum sit amet nr. 4
I am already using Commons configuration. Is it possible to store them using the same property keys in any configuration object (XMLConfiguration, HierarchicalConfiguration, etc.)? I mean, to get them one way using an interface similar to getStringArray () (or list)? Example:
// reject.reason = Lorem ipsum sit amet nr. 1 // reject.reason = Lorem ipsum sit amet nr. 2 // reject.reason = Lorem ipsum sit amet nr. 3 // reject.reason = Lorem ipsum sit amet nr. 4 config.getStringArray(reject.reason)
I do not want them to be separated on one line, because, firstly, the reasons are long-lasting, and secondly, there are many reasons (> 10).
I do not want to store them in enumerations, b / c, they cannot be changed without recompiling the code.
Any hints on how to achieve this?
java arrays properties configuration
MichaΕ Minicki
source share