org.eclipse.osgi.internal.loader
Class NullPackageSource
java.lang.Object
org.eclipse.osgi.internal.loader.PackageSource
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.
| Fields inherited from class org.eclipse.osgi.internal.loader.PackageSource |
id |
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.