use of com.serotonin.m2m2.module.FileStoreDefinition in project ma-core-public by infiniteautomation.
the class ModuleRegistry method ensureFileStoreDefinitions.
private static void ensureFileStoreDefinitions() {
if (FILE_STORE_DEFINITIONS == null) {
synchronized (LOCK) {
if (FILE_STORE_DEFINITIONS == null) {
Map<String, FileStoreDefinition> map = new HashMap<>();
for (FileStoreDefinition def : Module.getDefinitions(preDefaults, FileStoreDefinition.class)) {
map.put(def.getStoreName(), def);
}
for (Module module : MODULES.values()) {
for (FileStoreDefinition def : module.getDefinitions(FileStoreDefinition.class)) map.put(def.getStoreName(), def);
}
for (FileStoreDefinition def : Module.getDefinitions(postDefaults, FileStoreDefinition.class)) {
map.put(def.getStoreName(), def);
}
FILE_STORE_DEFINITIONS = map;
}
}
}
}
Aggregations