org.apache.xbean.osgi.bundle.util
Class BundleResourceFinder

java.lang.Object
  extended by org.apache.xbean.osgi.bundle.util.BundleResourceFinder

public class BundleResourceFinder
extends Object

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: 942661 $ $Date: 2010-05-10 01:17:20 -0400 (Mon, 10 May 2010) $

Nested Class Summary
static class BundleResourceFinder.DefaultResourceFinderCallback
           
static class BundleResourceFinder.DummyDiscoveryFilter
           
static interface BundleResourceFinder.ResourceFinderCallback
           
 
Field Summary
static ResourceDiscoveryFilter FULL_DISCOVERY_FILTER
           
 
Constructor Summary
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)
           
 
Method Summary
 Set<URL> find()
           
 void find(BundleResourceFinder.ResourceFinderCallback callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FULL_DISCOVERY_FILTER

public static final ResourceDiscoveryFilter FULL_DISCOVERY_FILTER
Constructor Detail

BundleResourceFinder

public BundleResourceFinder(org.osgi.service.packageadmin.PackageAdmin packageAdmin,
                            org.osgi.framework.Bundle bundle,
                            String prefix,
                            String suffix)

BundleResourceFinder

public BundleResourceFinder(org.osgi.service.packageadmin.PackageAdmin packageAdmin,
                            org.osgi.framework.Bundle bundle,
                            String prefix,
                            String suffix,
                            ResourceDiscoveryFilter discoveryFilter)
Method Detail

find

public void find(BundleResourceFinder.ResourceFinderCallback callback)
          throws Exception
Throws:
Exception

find

public Set<URL> find()


Copyright © 2005-2012. All Rights Reserved.