Home Reference Source
import {ServiceProvider} from '@osjs/common/src/service-provider.js'
public interface | source

ServiceProvider

Provides a basic Service Provider interface for OS.js

Constructor Summary

Public Constructor
public

constructor(core: Core)

Constructor

Member Summary

Public Members
public

core: Core

Core instance reference

Method Summary

Public Methods
public

A list of services this provider depends on

public

Destroys provider

public

async init()

Initializes provider

public

A list of services this provider can create

public

start()

Starts provider

Public Constructors

public constructor(core: Core) source

Constructor

Params:

NameTypeAttributeDescription
core Core

Core reference

Public Members

public core: Core source

Core instance reference

Public Methods

public depends(): string[] source

A list of services this provider depends on

Return:

string[]

public destroy() source

Destroys provider

public async init() source

Initializes provider

public provides(): string[] source

A list of services this provider can create

Return:

string[]

public start() source

Starts provider