public class JIPipeApplicationSettingsRegistry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JIPipeApplicationSettingsRegistry.ChangedEvent |
static class |
JIPipeApplicationSettingsRegistry.ChangedEventEmitter |
static interface |
JIPipeApplicationSettingsRegistry.ChangedEventListener |
Constructor and Description |
---|
JIPipeApplicationSettingsRegistry(JIPipe jiPipe) |
Modifier and Type | Method and Description |
---|---|
<T extends JIPipeSettingsSheet> |
getById(String id,
Class<T> klass)
Gets the settings instance with given ID
|
<T extends JIPipeSettingsSheet> |
getByType(Class<T> klass)
Gets the settings instance with given ID
|
JIPipeApplicationSettingsRegistry.ChangedEventEmitter |
getChangedEventEmitter() |
JIPipe |
getJIPipe() |
static Path |
getPropertyFile() |
static com.fasterxml.jackson.databind.JsonNode |
getRawNode()
Gets the raw property files Json node
|
com.google.common.collect.BiMap<String,JIPipeApplicationSettingsSheet> |
getRegisteredSheets() |
void |
load(Path file)
Loads settings from the specified file
|
void |
register(JIPipeApplicationSettingsSheet sheet)
Registers a new settings sheet
|
void |
reload()
Reloads the settings from the default file if it exists
|
void |
save()
Saves the settings to the default settings file
|
void |
save(Path file)
Saves the settings to the specified file
|
void |
saveLater() |
public JIPipeApplicationSettingsRegistry(JIPipe jiPipe)
public static com.fasterxml.jackson.databind.JsonNode getRawNode()
public static Path getPropertyFile()
public void register(JIPipeApplicationSettingsSheet sheet)
sheet
- the sheetpublic <T extends JIPipeSettingsSheet> T getById(String id, Class<T> klass)
T
- the settings classid
- the IDklass
- the settings classpublic <T extends JIPipeSettingsSheet> T getByType(Class<T> klass)
T
- the settings classklass
- the settings classpublic com.google.common.collect.BiMap<String,JIPipeApplicationSettingsSheet> getRegisteredSheets()
public void save(Path file)
file
- the file pathpublic void save()
public void load(Path file)
file
- the filepublic void reload()
public JIPipe getJIPipe()
public void saveLater()
public JIPipeApplicationSettingsRegistry.ChangedEventEmitter getChangedEventEmitter()
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.