osgi

Namespace

osgi

Description:
  • OSGi module. This module provides access to OSGi services.

Source:

Methods

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

Description:
  • Finds services registered with OSGi.

Source:
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:.<*:>

(static) getService(…classOrNames) → {*|null}

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

Source:
Parameters:
Name Type Attributes Description
classOrNames Array:.<(String:|JavaClass:)> <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

Type
* | null