Class BundleResourceFinder
java.lang.Object
org.apache.xbean.osgi.bundle.util.BundleResourceFinder
Finds all available resources to a bundle by scanning Bundle-ClassPath header
of the given bundle and its fragments.
DynamicImport-Package header is not considered during scanning.
- Version:
- $Rev: 1452425 $ $Date: 2013-03-04 19:13:52 +0100 (Mon, 04 Mar 2013) $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static interface
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBundleResourceFinder
(org.osgi.service.packageadmin.PackageAdmin packageAdmin, org.osgi.framework.Bundle bundle, String prefix, String suffix) BundleResourceFinder
(org.osgi.service.packageadmin.PackageAdmin packageAdmin, org.osgi.framework.Bundle bundle, String prefix, String suffix, ResourceDiscoveryFilter discoveryFilter) Set up a BundleResourceFinder The suffix may contain a path fragment, unlike the bundle.findEntries method. -
Method Summary
-
Field Details
-
FULL_DISCOVERY_FILTER
-
-
Constructor Details
-
BundleResourceFinder
-
BundleResourceFinder
public BundleResourceFinder(org.osgi.service.packageadmin.PackageAdmin packageAdmin, org.osgi.framework.Bundle bundle, String prefix, String suffix, ResourceDiscoveryFilter discoveryFilter) Set up a BundleResourceFinder The suffix may contain a path fragment, unlike the bundle.findEntries method.- Parameters:
packageAdmin
- package admin for finding fragmentsbundle
- bundle to searchprefix
- search only paths and zip files starting with this prefixsuffix
- return only entries ending in this suffix.discoveryFilter
- filter for matching directories and zip files.
-
-
Method Details
-
find
- Throws:
Exception
-
find
-