| | |
| | | private final Logger logger = LoggerFactory.getLogger(FileSettings.class);
|
| | |
|
| | | private final File propertiesFile;
|
| | | |
| | |
|
| | | private Properties properties = new Properties();
|
| | |
|
| | | private long lastread;
|
| | |
| | | public FileSettings(String file) {
|
| | | this.propertiesFile = new File(file);
|
| | | }
|
| | | |
| | |
|
| | | @Override
|
| | | public List<String> getAllKeys(String startingWith) {
|
| | | startingWith = startingWith.toLowerCase();
|
| | |
| | | return strings;
|
| | | }
|
| | |
|
| | | private synchronized Properties read() { |
| | | private synchronized Properties read() {
|
| | | if (propertiesFile.exists() && (propertiesFile.lastModified() > lastread)) {
|
| | | FileInputStream is = null;
|
| | | try {
|