osgi

osgi

Source:

OSGi module. This module provides access to OSGi services.

Methods

(static) getService(…classOrNames)

Source:

Gets a service registered with OSGi. Allows providing multiple classes/names to try for lookup.

Parameters:
Name Type Attributes Description
classOrNames Array.<(String|HostClass)> <repeatable>

the class of the service to get

Throws:

if no services of the requested type(s) can be found

Type
Error
Returns:

an instance of the service, or null if it cannot be found

(static) findServices(className, filteropt) → {Array.<Object>}

Source:

Finds services registered with OSGi.

Parameters:
Name Type Attributes Description
className string

the class of the service to get

filter * <optional>

an optional filter used to filter the returned services

Returns:

any instances of the service that can be found

Type
Array.<Object>