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

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

public class BundleResourceFinder
extends java.lang.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 07:17:20 +0200 (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, java.lang.String prefix, java.lang.String suffix)
           
BundleResourceFinder(org.osgi.service.packageadmin.PackageAdmin packageAdmin, org.osgi.framework.Bundle bundle, java.lang.String prefix, java.lang.String suffix, ResourceDiscoveryFilter discoveryFilter)
           
 
Method Summary
 java.util.Set<java.net.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,
                            java.lang.String prefix,
                            java.lang.String suffix)

BundleResourceFinder

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

find

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

find

public java.util.Set<java.net.URL> find()


Copyright © 2005-2011. All Rights Reserved.