Skip to content

Commit 4f5f950

Browse files
Platform links (#5666)
* initial * load from json file * unit test * test fix * Potential fix for code scanning alert no. 10320: Log Injection Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Nedelcho Delchev <delchevn@gmail.com> * remove sorting by path --------- Signed-off-by: Nedelcho Delchev <delchevn@gmail.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 8aafe38 commit 4f5f950

23 files changed

Lines changed: 1272 additions & 3 deletions

File tree

components/core/core-initializers/src/main/java/org/eclipse/dirigible/components/initializers/synchronizer/SynchronizationInitializer.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import org.eclipse.dirigible.components.base.ApplicationListenersOrder.ApplicationReadyEventListeners;
1313
import org.eclipse.dirigible.components.initializers.classpath.ClasspathExpander;
1414
import org.eclipse.dirigible.components.registry.watcher.ExternalRegistryWatcher;
15-
import org.eclipse.dirigible.components.registry.watcher.RecursiveFolderWatcher;
15+
import org.eclipse.dirigible.components.registry.watcher.LocalRegistryWatcher;
1616
import org.slf4j.Logger;
1717
import org.slf4j.LoggerFactory;
1818
import org.springframework.boot.context.event.ApplicationReadyEvent;
@@ -38,19 +38,26 @@ public class SynchronizationInitializer implements ApplicationListener<Applicati
3838
/** The classpath expander. */
3939
private final ClasspathExpander classpathExpander;
4040

41+
/** The external registry watcher. */
4142
private final ExternalRegistryWatcher externalRegistryWatcher;
4243

44+
/** The local registry watcher. */
45+
private final LocalRegistryWatcher localRegistryWatcher;
46+
4347
/**
4448
* Instantiates a new synchronizers initializer.
4549
*
4650
* @param synchronizationProcessor the synchronization processor
4751
* @param classpathExpander the classpath expander
52+
* @param externalRegistryWatcher the external registry watcher
53+
* @param localRegistryWatcher the local registry watcher
4854
*/
4955
public SynchronizationInitializer(SynchronizationProcessor synchronizationProcessor, ClasspathExpander classpathExpander,
50-
ExternalRegistryWatcher externalRegistryWatcher) {
56+
ExternalRegistryWatcher externalRegistryWatcher, LocalRegistryWatcher localRegistryWatcher) {
5157
this.synchronizationProcessor = synchronizationProcessor;
5258
this.classpathExpander = classpathExpander;
5359
this.externalRegistryWatcher = externalRegistryWatcher;
60+
this.localRegistryWatcher = localRegistryWatcher;
5461
}
5562

5663
/**
@@ -66,6 +73,7 @@ public void onApplicationEvent(ApplicationReadyEvent event) {
6673
classpathExpander.expandContent();
6774
synchronizationProcessor.processSynchronizers();
6875
externalRegistryWatcher.initialize();
76+
localRegistryWatcher.initialize();
6977

7078
LOGGER.info("Completed.");
7179

0 commit comments

Comments
 (0)