public class JIPipePluginRegistry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JIPipePluginRegistry.ScheduledActivatePluginEvent
Triggered by
JIPipePluginRegistry when an extension is scheduled to be activated |
static class |
JIPipePluginRegistry.ScheduledActivatePluginEventEmitter |
static interface |
JIPipePluginRegistry.ScheduledActivatePluginEventListener |
static class |
JIPipePluginRegistry.ScheduledDeactivatePluginEvent
Triggered by
JIPipePluginRegistry when an extension is scheduled to be deactivated |
static class |
JIPipePluginRegistry.ScheduledDeactivatePluginEventEmitter |
static interface |
JIPipePluginRegistry.ScheduledDeactivatePluginEventListener |
static class |
JIPipePluginRegistry.Settings |
Constructor and Description |
---|
JIPipePluginRegistry(JIPipe jiPipe) |
Modifier and Type | Method and Description |
---|---|
void |
clearSchedule(String id) |
void |
dismissNewPlugins() |
void |
findNewPlugins()
Updates the list of new extensions
|
static Set<JIPipeDependency> |
findUnsatisfiedDependencies(Set<JIPipeDependency> dependencies)
Finds all dependencies that cannot be met
|
Set<String> |
getActivatedPlugins()
List of all activated extensions
|
Set<String> |
getAllDependenciesOf(String id)
Returns the dependency IDs that are dependencies of the provided extension ID
|
Set<String> |
getAllDependentsOf(String id)
Returns the dependency IDs that are depentents of the provided extension ID
|
org.jgrapht.graph.DefaultDirectedGraph<JIPipeDependency,org.jgrapht.graph.DefaultEdge> |
getDependencyGraph()
Returns a directed graph of all dependencies.
|
JIPipe |
getJIPipe() |
Map<String,JIPipePlugin> |
getKnownPluginById() |
JIPipePlugin |
getKnownPluginById(String id)
Returns a known extension by ID
If multiple extensions share the same ID, only one is returned
If there is none, null will be returned
|
List<JIPipePlugin> |
getKnownPluginsList() |
Set<String> |
getNewPlugins()
A set of extensions that are new and should be made known to the user
|
static Path |
getPropertyFile() |
JIPipePluginRegistry.ScheduledActivatePluginEventEmitter |
getScheduledActivatePluginEventEmitter() |
Set<String> |
getScheduledActivatePlugins() |
JIPipePluginRegistry.ScheduledDeactivatePluginEventEmitter |
getScheduledDeactivatePluginEventEmitter() |
Set<String> |
getScheduledDeactivatePlugins() |
JIPipePluginRegistry.Settings |
getSettings() |
void |
initialize() |
boolean |
isKnownDependency(String id) |
void |
load() |
void |
load(Path file)
Loads settings from the specified file
|
void |
registerKnownPlugin(JIPipePlugin extension)
Registers an extension as known to the extension registry.
|
void |
save()
Saves the settings to the default settings file
|
void |
save(Path file)
Saves the settings to the specified file
|
void |
scheduleActivatePlugin(String id) |
void |
scheduleDeactivatePlugin(String id) |
Set<JIPipeDependency> |
tryResolveToKnownDependencies(Set<JIPipeDependency> dependencies)
Resolves as many dependencies in the provided set against a known dependency, so there is access to other metadata.
|
boolean |
willBeActivatedOnNextStartup(String id) |
boolean |
willBeDeactivatedOnNextStartup(String id) |
public JIPipePluginRegistry(JIPipe jiPipe)
public static Set<JIPipeDependency> findUnsatisfiedDependencies(Set<JIPipeDependency> dependencies)
dependencies
- List of dependencies to be checked. Only the ID will be checked.public static Path getPropertyFile()
public void initialize()
public JIPipePluginRegistry.Settings getSettings()
public JIPipePluginRegistry.ScheduledDeactivatePluginEventEmitter getScheduledDeactivatePluginEventEmitter()
public JIPipePluginRegistry.ScheduledActivatePluginEventEmitter getScheduledActivatePluginEventEmitter()
public Set<String> getActivatedPlugins()
public void registerKnownPlugin(JIPipePlugin extension)
extension
- the extensionpublic JIPipePlugin getKnownPluginById(String id)
id
- the IDpublic void findNewPlugins()
public void dismissNewPlugins()
public Set<String> getNewPlugins()
public List<JIPipePlugin> getKnownPluginsList()
public Map<String,JIPipePlugin> getKnownPluginById()
public void clearSchedule(String id)
public Set<String> getAllDependenciesOf(String id)
id
- the extension idpublic Set<String> getAllDependentsOf(String id)
id
- the extension idpublic void scheduleActivatePlugin(String id)
public void scheduleDeactivatePlugin(String id)
public org.jgrapht.graph.DefaultDirectedGraph<JIPipeDependency,org.jgrapht.graph.DefaultEdge> getDependencyGraph()
public boolean isKnownDependency(String id)
public Set<JIPipeDependency> tryResolveToKnownDependencies(Set<JIPipeDependency> dependencies)
dependencies
- the dependenciespublic boolean willBeActivatedOnNextStartup(String id)
public boolean willBeDeactivatedOnNextStartup(String id)
public void save(Path file)
file
- the file pathpublic void save()
public void load()
public void load(Path file)
file
- the filepublic JIPipe getJIPipe()
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.