org.apache.felix.framework.searchpolicy
Class PackageSource

java.lang.Object
  extended by org.apache.felix.framework.searchpolicy.PackageSource
All Implemented Interfaces:
Comparable

public class PackageSource
extends Object
implements Comparable

This utility class represents a source for a given package, where the package is indicated by a particular module and the module's capability associated with that package. This class also implements Comparable so that two package sources can be compared based on version and bundle identifiers.


Field Summary
 ICapability m_capability
           
 IModule m_module
           
 
Constructor Summary
PackageSource(IModule module, ICapability capability)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_module

public IModule m_module

m_capability

public ICapability m_capability
Constructor Detail

PackageSource

public PackageSource(IModule module,
                     ICapability capability)
Method Detail

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.