org.eclipse.osgi.internal.loader
Class NullPackageSource

java.lang.Object
  extended by org.eclipse.osgi.internal.loader.PackageSource
      extended by org.eclipse.osgi.internal.loader.NullPackageSource
All Implemented Interfaces:
KeyedElement

public class NullPackageSource
extends PackageSource

This class is used to optimize finding provided-packages for a bundle. If the package cannot be found in a list of required bundles then this class is used to cache a null package source so that the search does not need to be done again.


Field Summary
 
Fields inherited from class org.eclipse.osgi.internal.loader.PackageSource
id
 
Method Summary
static NullPackageSource getNullPackageSource(String name)
           
 URL getResource(String name)
           
 Enumeration<URL> getResources(String name)
           
 SingleSourcePackage[] getSuppliers()
           
 boolean isNullSource()
           
 List<String> listResources(String path, String filePattern)
           
 Class<?> loadClass(String name)
           
 String toString()
           
 
Methods inherited from class org.eclipse.osgi.internal.loader.PackageSource
compare, getId, getKey, getKeyHashCode, hasCommonSource, isFriend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSuppliers

public SingleSourcePackage[] getSuppliers()
Specified by:
getSuppliers in class PackageSource

isNullSource

public boolean isNullSource()
Overrides:
isNullSource in class PackageSource

toString

public String toString()
Overrides:
toString in class Object

loadClass

public Class<?> loadClass(String name)
Specified by:
loadClass in class PackageSource

getResource

public URL getResource(String name)
Specified by:
getResource in class PackageSource

getResources

public Enumeration<URL> getResources(String name)
Specified by:
getResources in class PackageSource

getNullPackageSource

public static NullPackageSource getNullPackageSource(String name)

listResources

public List<String> listResources(String path,
                                  String filePattern)
Specified by:
listResources in class PackageSource


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.