org.eclipse.osgi.internal.loader
Class PackageSource
java.lang.Object
org.eclipse.osgi.internal.loader.PackageSource
- All Implemented Interfaces:
- KeyedElement
- Direct Known Subclasses:
- MultiSourcePackage, NullPackageSource, SingleSourcePackage
public abstract class PackageSource
- extends Object
- implements KeyedElement
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected String id
PackageSource
public PackageSource(String id)
getId
public String getId()
getSuppliers
public abstract SingleSourcePackage[] getSuppliers()
compare
public boolean compare(KeyedElement other)
- Description copied from interface:
KeyedElement
- Compares this element with a specified element
- Specified by:
compare in interface KeyedElement
- Parameters:
other - the element to compare with
- Returns:
- returns true if the specified element equals this element
getKeyHashCode
public int getKeyHashCode()
- Description copied from interface:
KeyedElement
- Returns the hash code of the key
- Specified by:
getKeyHashCode in interface KeyedElement
- Returns:
- the hash code of the key
getKey
public Object getKey()
- Description copied from interface:
KeyedElement
- Returns the key for this element
- Specified by:
getKey in interface KeyedElement
- Returns:
- the key for this element
isNullSource
public boolean isNullSource()
isFriend
public boolean isFriend(String symbolicName)
loadClass
public abstract Class<?> loadClass(String name)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getResource
public abstract URL getResource(String name)
getResources
public abstract Enumeration<URL> getResources(String name)
throws IOException
- Throws:
IOException
hasCommonSource
public boolean hasCommonSource(PackageSource other)
listResources
public abstract Collection<String> listResources(String path,
String filePattern)
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.