Home Reference Source Test
public class | source

Loader

Constructor Summary

Public Constructor
public

constructor(runtimeURL: *, runtimeConfiguration: *, runtimeDescriptorsInstance: *)

Member Summary

Public Members
public
public set

messageBus(value: MessageBus): *

Set Message Bus component

public get

Get Message Bus component

public set

registry(value: Registry): *

Set Registry component

public get

Get Registry component

public
public set

Set Runtime Factory component

public get

Get Runtime Factory component

public set

runtimeURL(value: string): *

Set runtime url

public get

Get runtime url

Method Summary

Public Methods
public

loadHyperty(hypertyCatalogueURL: URL.HypertyCatalogueURL, reuseURL: boolean | URL.HypertyURL, appURL: URL, IdpConstraint: object): Promise<Boolean, Error>

Deploy Hyperty from Catalogue URL

public

loadIdpProxy(domain: URL.URL): *

Deploy idpProxy from Catalogue URL or domain url

public

loadStub(domain: URL.URL, p2pConfig: Object): *

Deploy Stub from Catalogue URL or domain url

Public Constructors

public constructor(runtimeURL: *, runtimeConfiguration: *, runtimeDescriptorsInstance: *) source

Params:

NameTypeAttributeDescription
runtimeURL *
runtimeConfiguration *
runtimeDescriptorsInstance *

Public Members

public descriptors: * source

public set messageBus(value: MessageBus): * source

Set Message Bus component

public get messageBus: MessageBus: * source

Get Message Bus component

Return:

MessageBus

Message Bus component

public set registry(value: Registry): * source

Set Registry component

public get registry: Registry: * source

Get Registry component

Return:

Registry

Registry component

public runtimeConfiguration: * source

public set runtimeFactory(value: runtimeFactory): * source

Set Runtime Factory component

public get runtimeFactory: runtimeFactory: * source

Get Runtime Factory component

Return:

runtimeFactory

Runtime Factory component

public set runtimeURL(value: string): * source

Set runtime url

public get runtimeURL: string: * source

Get runtime url

Return:

string

value runtimeURL

Public Methods

public loadHyperty(hypertyCatalogueURL: URL.HypertyCatalogueURL, reuseURL: boolean | URL.HypertyURL, appURL: URL, IdpConstraint: object): Promise<Boolean, Error> source

Deploy Hyperty from Catalogue URL

Params:

NameTypeAttributeDescription
hypertyCatalogueURL URL.HypertyCatalogueURL

The Catalogue URL used to identify descriptors in the Catalogue.

reuseURL boolean | URL.HypertyURL
  • optional
  • default: false

reuseURL - reuseURL is used to reuse the hypertyURL previously registred, by default the reuse is disabled;

appURL URL

the app url origin address;

IdpConstraint object

constraints to be used when selecting the identity to be associated with the Hyperty including origin, idp, and idHint.

Return:

Promise<Boolean, Error>

this is Promise and returns true if all components are loaded with success or an error if someone fails.

See:

public loadIdpProxy(domain: URL.URL): * source

Deploy idpProxy from Catalogue URL or domain url

Params:

NameTypeAttributeDescription
domain URL.URL

domain

Return:

*

public loadStub(domain: URL.URL, p2pConfig: Object): * source

Deploy Stub from Catalogue URL or domain url

Params:

NameTypeAttributeDescription
domain URL.URL

domain

p2pConfig Object

configuration of p2p

Return:

*