Skip to content

wisp-resource-loader

A testable way to load resources. See ResourceLoader for documentation.

Also see wisp-resource-loader-testing .

Usage

val resourceLoader: ResourceLoader = ResourceLoader(
  mapOf(
    "classpath:" to ClasspathResourceLoaderBackend,
    "memory:" to MemoryResourceLoaderBackend(),
    "filesystem:" to FilesystemLoaderBackend,
    "environment:" to EnvironmentLoaderBackend,
  )
)

val resource = resourceLoader.utf8("classpath:/wisp/resources/ResourceLoaderTest.txt")