public class Celix
extends java.util.Observable
| Modifier and Type | Method and Description |
|---|---|
void |
deleteBundle(java.lang.String bundlePath)
Delete bundle with specified location
|
void |
deleteBundleById(long id)
Delete bundle with specified id
|
java.lang.String[] |
getBundles()
Get the id/status/name of a bundle
|
java.util.List<OsgiBundle> |
getBundlesInList()
Get a list of OsgiBundles containing a id, status and name
This list is sorted by id.
|
static Celix |
getInstance()
Singleton pattern, make sure you pass context.
|
java.lang.String |
getStdio()
Returns latest C logs, clears after.
|
void |
installBundle(java.lang.String bundlePath)
Installs the bundle from specified location
|
void |
installStartBundle(java.lang.String bundlePath)
Installs and starts a bundle from specified location
|
boolean |
isCelixRunning()
Method for checking if celix is running
|
void |
startBundle(java.lang.String absolutePath)
Starts the bundle from specified location
|
void |
startBundleById(long id)
Starts bundle with specified ID
|
void |
startFramework(java.lang.String configPath)
Starts the framework with the config.properties which are specified
|
void |
stopBundle(java.lang.String bundlePath)
Stops bundle with specified location
|
void |
stopBundleById(long id)
Stop bundle with specified id
|
void |
stopFramework()
Stops the celix framework.
|
public static Celix getInstance()
public boolean isCelixRunning()
public void installBundle(java.lang.String bundlePath)
bundlePath - Path where the bundle(.zip) is locatedpublic void installStartBundle(java.lang.String bundlePath)
bundlePath - Path where the bundle (.zip) is locatedpublic void startBundle(java.lang.String absolutePath)
absolutePath - Path where the bundle (.zip) is locatedpublic void startBundleById(long id)
id - Id of bundle you want to start.public void stopBundle(java.lang.String bundlePath)
bundlePath - Path where the bundle (.zip) is locatedpublic void stopBundleById(long id)
id - id of the bundle you want to stoppublic void deleteBundle(java.lang.String bundlePath)
bundlePath - Path where the bundle (.zip) is located.public void deleteBundleById(long id)
id - Id of the bundle you want to deletepublic void startFramework(java.lang.String configPath)
configPath - Path where the config.properties file is locatedpublic void stopFramework()
public java.lang.String[] getBundles()
public java.util.List<OsgiBundle> getBundlesInList()
public java.lang.String getStdio()