public class OSGiHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearBundleStorage(String symbolicName)
Clears the given content.
|
static File |
getBundleBasePath() |
static File |
getBundleResourcesBasePath() |
static String |
getBundleStorage(String symbolicName)
Return the absolute path of the directory a bundle can use for for storing content.
|
static String |
getRelativeBundleResourceLocation(String symbolicName,
String resourceLocation)
Get the path of a bundle resource relative to the resources base path as returned by
getBundleResourcesBasePath(). |
public static void clearBundleStorage(String symbolicName)
symbolicName - The bundles symbolic name.public static File getBundleBasePath()
public static File getBundleResourcesBasePath()
public static String getBundleStorage(String symbolicName)
symbolicName - The symbolic name of the bundle.public static String getRelativeBundleResourceLocation(String symbolicName, String resourceLocation)
getBundleResourcesBasePath().symbolicName - the symbolic name of the bundleresourceLocation - location of a resource of a bundle relative to the META-INF/resources directoryCopyright © 2019 Communote team. All rights reserved.