org.eclipse.osgi.framework.internal.core
Class NullPackageSource

java.lang.Object
  extended by org.eclipse.osgi.framework.internal.core.PackageSource
      extended by org.eclipse.osgi.framework.internal.core.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.framework.internal.core.PackageSource
id
 
Method Summary
static NullPackageSource getNullPackageSource(java.lang.String name)
           
 java.net.URL getResource(java.lang.String name)
           
 java.util.Enumeration getResources(java.lang.String name)
           
 SingleSourcePackage[] getSuppliers()
           
 boolean isNullSource()
           
 java.lang.Class loadClass(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.osgi.framework.internal.core.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

loadClass

public java.lang.Class loadClass(java.lang.String name)
Specified by:
loadClass in class PackageSource

getResource

public java.net.URL getResource(java.lang.String name)
Specified by:
getResource in class PackageSource

getResources

public java.util.Enumeration getResources(java.lang.String name)
Specified by:
getResources in class PackageSource

getNullPackageSource

public static NullPackageSource getNullPackageSource(java.lang.String name)