public class JsonExtensionLoaderExtension extends JIPipePrepackagedDefaultJavaExtension
JIPipeJsonExtension
Constructor and Description |
---|
JsonExtensionLoaderExtension() |
Modifier and Type | Method and Description |
---|---|
StringList |
getDependencyCitations()
Returns all dependent work
|
String |
getDependencyId() |
HTMLText |
getDescription() |
String |
getName() |
static Path |
getPluginDirectory() |
boolean |
isCoreExtension()
Returns whether this extension is a core extension and thus cannot be disabled by users.
|
void |
onExtensionRegistered(JIPipe.ExtensionRegisteredEvent event)
Triggered when an extension is registered.
|
void |
register(JIPipe jiPipe,
Context context,
JIPipeProgressInfo progressInfo)
Registers custom modules into JIPipe
|
void |
registerJsonExtensionFromFile(Path filePath)
Schedules a registration task for the file path
|
void |
registerJsonExtensionFromResource(String resourcePath)
Schedules a registration task for a resource path
|
void |
reportValidity(JIPipeIssueReport report)
Generates a validity report
|
void |
runRegistrationTask(JsonExtensionRegistrationTask task)
Immediately runs a registration task.
|
void |
scheduleRegisterJsonExtension(Path filePath,
com.fasterxml.jackson.databind.JsonNode jsonNode)
Schedules the registration of an extension
Invalid JSON data is skipped
|
void |
setRegistry(JIPipe registry)
Sets the registry
|
void |
updateRegistrationTasks()
Tries to register more extensions waiting for dependencies
|
getAuthors, getCitation, getLicense, getLogo, getWebsite
configureDefaultImageJAdapters, configureDefaultImageJAdapters, getAcknowledgements, getCategories, getDependencies, getDependencyLocation, getDependencyVersion, getMetadata, getRegistry, getSummary, getThumbnail, registerContextMenuAction, registerDatatype, registerDatatype, registerDatatypeConversion, registerDatatypeDisplayOperation, registerDatatypeImportOperation, registerDatatypeOperation, registerEnumParameterType, registerEnvironment, registerEnvironmentInstaller, registerExpressionFunction, registerExpressionFunction, registerGraphEditorToolBarButtonExtension, registerImageJDataExporter, registerImageJDataImporter, registerMenuExtension, registerNodeExample, registerNodeExamplesFromResources, registerNodeExamplesFromResources, registerNodeType, registerNodeType, registerNodeType, registerNodeType, registerNodeType, registerNodeTypeCategory, registerParameterEditor, registerParameterGenerator, registerParameterType, registerParameterType, registerParameterType, registerParameterType, registerParameterType, registerParameterType, registerProjectTemplatesFromResources, registerProjectTemplatesFromResources, registerSettingsSheet, registerSettingsSheet, registerTableColumnOperation, registerTableColumnOperationAndExpressionFunction, registerUtility
getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSplashIcons, postprocess
isActivated, isBeta, isScheduledForActivation, isScheduledForDeactivation
getAllDependencies, getAllDependencies, getAllImageJUpdateSiteDependencies, getImageJUpdateSiteDependencies, getImageJUpdateSites, simplifyAndMinimize, toHtmlElement
generateValidityReport
initialize, registerEventHandlers
getIdentifier, log
context
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public static Path getPluginDirectory()
public StringList getDependencyCitations()
JIPipeDefaultJavaExtension
getDependencyCitations
in class JIPipeDefaultJavaExtension
public String getName()
getName
in class JIPipeDefaultJavaExtension
public HTMLText getDescription()
getDescription
in class JIPipeDefaultJavaExtension
public void register(JIPipe jiPipe, Context context, JIPipeProgressInfo progressInfo)
JIPipeJavaExtension
public void setRegistry(JIPipe registry)
JIPipeJavaExtension
setRegistry
in interface JIPipeJavaExtension
setRegistry
in class JIPipeDefaultJavaExtension
registry
- The registrypublic String getDependencyId()
public void updateRegistrationTasks()
public void runRegistrationTask(JsonExtensionRegistrationTask task)
task
- the taskpublic void registerJsonExtensionFromFile(Path filePath)
filePath
- extension filepublic void registerJsonExtensionFromResource(String resourcePath)
resourcePath
- the resourcepublic void scheduleRegisterJsonExtension(Path filePath, com.fasterxml.jackson.databind.JsonNode jsonNode)
filePath
- the file path where the JSON was loaded. This is only used for information. Can be null.jsonNode
- JSON data that contains the serialized extensionpublic void reportValidity(JIPipeIssueReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
reportValidity
in interface JIPipeDependency
reportValidity
in class JIPipeDefaultJavaExtension
report
- the report to be added topublic void onExtensionRegistered(JIPipe.ExtensionRegisteredEvent event)
event
- Generated eventpublic boolean isCoreExtension()
JIPipeExtension
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.