class Resolver

Defined at line 1395 of file fidling/gen/sdk/fidl/fuchsia.component.resolution/fuchsia.component.resolution/hlcpp/fuchsia/component/resolution/cpp/fidl.h

An interface for resolving a URL to a component.

This interface is implemented by components that provide support

for loading components with a particular URL scheme. For example,

the Fuchsia package component resolver exposes a service with this

interface to resolve component URLs using the "fuchsia-pkg://" scheme.

To use a resolver to resolve URLs within your realm, register it

in your realm's manifest.

Note: The component manager is the only intended direct client of this

interface.

Public Members

static const char[] Name_

Public Methods

void ~Resolver ()
void Resolve (::std::string component_url, ResolveCallback callback)

Resolves a component with the given absolute URL.

`component_url` is the unescaped URL of the component to resolve.

If successful, returns information about the component

that was resolved.

On failure, returns a `ResolverError` error.

void ResolveWithContext (::std::string component_url, ::fuchsia::component::resolution::Context context, ResolveWithContextCallback callback)

Resolves a component with the absolute or relative URL. If relative, the

component will be resolved relative to the supplied `context`.

`component_url` is the unescaped URL of the component to resolve, the

format of which can be either:

* a fully-qualified absolute component URL; or

* a subpackaged-component reference, prefixed by a URI relative

path to its containing subpackage (for example,

`child_package#meta/some_component.cm`)

`context` is the `resolution_context` of a previously-resolved

`Component`, providing the context for resoving a relative URL.

Protected Methods

void handle_unknown_method (uint64_t ordinal, bool method_has_response)

Friends

class Resolver_Stub