public class BundleResourceFinder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BundleResourceFinder.DefaultResourceFinderCallback |
static class |
BundleResourceFinder.DummyDiscoveryFilter |
static interface |
BundleResourceFinder.ResourceFinderCallback |
| Modifier and Type | Field and Description |
|---|---|
static ResourceDiscoveryFilter |
FULL_DISCOVERY_FILTER |
| Constructor and Description |
|---|
BundleResourceFinder(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.
|
public static final ResourceDiscoveryFilter FULL_DISCOVERY_FILTER
public BundleResourceFinder(org.osgi.service.packageadmin.PackageAdmin packageAdmin,
org.osgi.framework.Bundle bundle,
String prefix,
String suffix)
public BundleResourceFinder(org.osgi.service.packageadmin.PackageAdmin packageAdmin,
org.osgi.framework.Bundle bundle,
String prefix,
String suffix,
ResourceDiscoveryFilter discoveryFilter)
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.public void find(BundleResourceFinder.ResourceFinderCallback callback) throws Exception
ExceptionCopyright © 2005-2015 The Apache Software Foundation. All Rights Reserved.