public final class OsgiUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
A logger
|
| Modifier | Constructor and Description |
|---|---|
private |
OsgiUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
getAllBundleExports(FileFilter filter,
Set<String> pkgs)
All the packages that are exported from all bundles found on the system
classpath.
|
static String |
getBundleExports(File bundle)
Gets the attribute value for the Export-Bundle OSGi Manifest Attribute.
|
static Set<File> |
getClasspathCandidates(FileFilter filter)
Get the files that fits a given filter
|
static Set<String> |
splitIntoPackages(String exports,
Set<String> pkgs)
Splits a Package-Export OSGi Manifest Attribute value into packages
while stripping away the key/value properties.
|
public static Set<String> getAllBundleExports(FileFilter filter, Set<String> pkgs)
filter - The filter to use on the filespkgs - The set of packages to usepublic static Set<String> splitIntoPackages(String exports, Set<String> pkgs)
exports - The Package-Export OSGi Manifest Attribute value.pkgs - The set that will contain the found packages.public static Set<File> getClasspathCandidates(FileFilter filter)
filter - The filter in usepublic static String getBundleExports(File bundle)
bundle - The absolute path to a file bundle.Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.