org.apache.felix.framework.searchpolicy
Class PackageSource

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

public class PackageSource
extends java.lang.Object
implements java.lang.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(java.lang.Object o)
           
 boolean equals(java.lang.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(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright © 2006-2009 The Apache Software Foundation. All Rights Reserved.