Class: Resolver

(abstract) Resolver()

(abstract) new Resolver()

Source:

Members

(abstract) METHOD :string|symbol

Matching method - either a string or wildcard pattern.
Type:
  • string | symbol
Source:

(abstract) PREFIX :string|symbol

Matching prefix - either a string or wildcard pattern.
Type:
  • string | symbol
Source:

Methods

method(id) → {string}

Extracts a method from the provided identifier.
Parameters:
Name Type Description
id string
Source:
Returns:
Type
string

prefix(id) → {string}

Extracts a prefix from the provided identifier.
Parameters:
Name Type Description
id string
Source:
Returns:
Type
string

(async, abstract) resolve(id) → {Promise.<T>}

Resolves an entity with the provided identifier.
Parameters:
Name Type Description
id string fully qualified identifier.
Source:
Returns:
Type
Promise.<T>

supports(id) → {boolean}

Returns `true` if an entity with the provided identifier can be resolved using this resolver.
Parameters:
Name Type Description
id string fully qualified identifier.
Source:
Returns:
Type
boolean