resolve (fullName, options) Function
private
Given a fullName return the corresponding factory.
By default resolve
will retrieve the factory from the registry.
let registry = new Registry(); registry.register('api:twitter', Twitter); registry.resolve('api:twitter') // => Twitter
Optionally the registry can be provided with a custom resolver. If provided, resolve
will first provide the custom resolver the opportunity to resolve the fullName, otherwise it will fallback to the registry.
let registry = new Registry(); registry.resolver = function(fullName) { // lookup via the module system of choice }; // the twitter factory is added to the module system registry.resolve('api:twitter') // => Twitter
Parameters:
-
fullName
String
-
options
[Object]
-
-
source
[String]
- the fullname of the request source (used for local lookups)
-
source
Returns:
-
Function
- fullName's factory
Please login to continue.