osgi
Methods
(static) findServices(className, filteropt) → {Array:.<*:>}
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
(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 | 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