org.jetbrains.kotlinx.jupyter.api.ExtensionsProcessor.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-jupyter-api Show documentation
Show all versions of kotlin-jupyter-api Show documentation
API for libraries supporting Kotlin Jupyter notebooks
package org.jetbrains.kotlinx.jupyter.api
interface ExtensionsProcessor {
fun register(extension: T) = register(extension, ProcessingPriority.DEFAULT)
fun register(
extension: T,
priority: Int,
)
fun registerAll(extensions: Iterable) {
for (execution in extensions) {
register(execution)
}
}
fun unregister(extension: T)
fun unregisterAll()
fun registeredExtensions(): Collection
fun registeredExtensionsWithPriority(): List>
}