org.jetbrains.kotlinx.jupyter.libraries.LibraryResourcesProcessorImpl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-jupyter-kernel Show documentation
Show all versions of kotlin-jupyter-kernel Show documentation
Kotlin Jupyter kernel published as artifact
package org.jetbrains.kotlinx.jupyter.libraries
import org.jetbrains.kotlinx.jupyter.api.libraries.LibraryResource
import org.jetbrains.kotlinx.jupyter.api.libraries.ResourceType
import java.util.EnumMap
class LibraryResourcesProcessorImpl : LibraryResourcesProcessor {
private val processorMap = EnumMap(ResourceType::class.java)
init {
processorMap[ResourceType.JS] = JsLibraryResourcesProcessor()
processorMap[ResourceType.CSS] = CssLibraryResourcesProcessor()
}
override fun wrapLibrary(resource: LibraryResource, classLoader: ClassLoader): String {
return processorMap.getValue(resource.type).wrapLibrary(resource, classLoader)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy