# OSGI Module

Provides access to the OSGI runtime.

## Method Overview

Method | Description
--- | ---
getBundle() | Get a bundle instance.
installBundle() | Install a bundle from a given location.

## Methods

### getBundle

org.osgi.framework.Bundle getBundle(String name)

Get a bundle instance. If the bundle is registered in the OSGI runtime, the bundle instance is returned

name
  bundle symbolic name to look for

bundle instance or `null`

### installBundle

org.osgi.framework.Bundle installBundle(String url)

Install a bundle from a given location.

url
  install location URI

bundle instance or null

BundleException
  if the installation failed. BundleException types thrown by this method include: BundleException.READ_ERROR , BundleException.DUPLICATE_BUNDLE_ERROR, BundleException.MANIFEST_ERROR, and BundleException.REJECTED_BY_HOOK. SecurityException - If the caller does not have the appropriate AdminPermission[installed bundle,LIFECYCLE], and the Java Runtime Environment supports permissions. IllegalStateException - If this BundleContext is no longer valid.