use of org.jumpmind.symmetric.ext.ExtensionPointMetaData in project symmetric-ds by JumpMind.
the class ExtensionService method refresh.
public synchronized void refresh() {
extensionsByClassByName = new HashMap<Class, Map<String, IExtensionPoint>>();
extensionMetaData = new ArrayList<ExtensionPointMetaData>();
for (Class extensionClass : staticExtensionsByClassByName.keySet()) {
Map<String, IExtensionPoint> byNameMap = staticExtensionsByClassByName.get(extensionClass);
for (String name : byNameMap.keySet()) {
IExtensionPoint ext = byNameMap.get(name);
getExtensionsByNameMap(extensionClass).put(name, ext);
addExtensionPointMetaData(ext, name, extensionClass, true);
}
}
String prefix = parameterService.getString(ParameterConstants.RUNTIME_CONFIG_TABLE_PREFIX);
if (platform.getTableFromCache(TableConstants.getTableName(prefix, TableConstants.SYM_EXTENSION), false) != null) {
List<Extension> extensionList = sqlTemplate.query(getSql("selectEnabled"), new ExtensionRowMapper(), parameterService.getNodeGroupId());
log.info("Found {} extension points from the database that will be registered", extensionList.size());
for (Extension extension : extensionList) {
registerExtension(extension);
}
}
}
Aggregations