Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

Commit ac81850

Browse files
committed
Add way to reload system config.
1 parent 48fdc70 commit ac81850

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/uk/co/drnaylor/quickstart/ModuleContainer.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,15 @@ public final <R extends AbstractConfigAdapter<?>> R getConfigAdapterForModule(St
315315
return config.getConfigAdapterForModule(module, adapterClass);
316316
}
317317

318+
/**
319+
* Reloads the {@link SystemConfig}, but does not change any module status.
320+
*
321+
* @throws IOException If the config could not be reloaded.
322+
*/
323+
public final void reloadSystemConfig() throws IOException {
324+
config.load();
325+
}
326+
318327
/**
319328
* Builder class to create a {@link ModuleContainer}
320329
*/

0 commit comments

Comments
 (0)