org.eclipse.osgi.internal.loader
Class PackageSource

java.lang.Object
  extended by org.eclipse.osgi.internal.loader.PackageSource
All Implemented Interfaces:
KeyedElement
Direct Known Subclasses:
MultiSourcePackage, NullPackageSource, SingleSourcePackage

public abstract class PackageSource
extends Object
implements KeyedElement


Field Summary
protected  String id
           
 
Constructor Summary
PackageSource(String id)
           
 
Method Summary
 boolean compare(KeyedElement other)
          Compares this element with a specified element
 String getId()
           
 Object getKey()
          Returns the key for this element
 int getKeyHashCode()
          Returns the hash code of the key
abstract  URL getResource(String name)
           
abstract  Enumeration<URL> getResources(String name)
           
abstract  SingleSourcePackage[] getSuppliers()
           
 boolean hasCommonSource(PackageSource other)
           
 boolean isFriend(String symbolicName)
           
 boolean isNullSource()
           
abstract  Collection<String> listResources(String path, String filePattern)
           
abstract  Class<?> loadClass(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id
Constructor Detail

PackageSource

public PackageSource(String id)
Method Detail

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.