
commonMain.io.polywrap.core.resolution.UriResolver.kt Maven / Gradle / Ivy
package io.polywrap.core.resolution
import io.polywrap.core.Invoker
import uniffi.polywrap_native.FfiException
import uniffi.polywrap_native.FfiInvoker
import uniffi.polywrap_native.FfiUri
import uniffi.polywrap_native.FfiUriPackageOrWrapper
import uniffi.polywrap_native.FfiUriResolutionContext
import uniffi.polywrap_native.IffiUriResolver
interface UriResolver : IffiUriResolver, AutoCloseable {
/**
* Tries to resolve the given [Uri] to a Uri, WrapPackage, or Wrapper.
*
* @param uri The [Uri] to resolve.
* @param invoker The [Invoker] instance.
* @param resolutionContext The [FfiUriResolutionContext] for keeping track of the resolution history.
* @return A [UriPackageOrWrapper]
* @throws [FfiException]
*/
override fun tryResolveUri(
uri: FfiUri,
invoker: FfiInvoker,
resolutionContext: FfiUriResolutionContext
): FfiUriPackageOrWrapper
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy