org.jboss.osgi.resolver.v2.spi
Class ResourceIndexComparator

java.lang.Object
  extended by org.jboss.osgi.resolver.v2.spi.ResourceIndexComparator
All Implemented Interfaces:
Comparator<org.osgi.framework.resource.Capability>
Direct Known Subclasses:
FrameworkPreferencesComparator

public abstract class ResourceIndexComparator
extends Object
implements Comparator<org.osgi.framework.resource.Capability>

A comparator that uses the provided resource index.

Since:
02-Jul-2010
Author:
thomas.diesler@jboss.com

Constructor Summary
ResourceIndexComparator()
           
 
Method Summary
 int compare(org.osgi.framework.resource.Capability o1, org.osgi.framework.resource.Capability o2)
           
protected abstract  long getResourceIndex(org.osgi.framework.resource.Resource res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ResourceIndexComparator

public ResourceIndexComparator()
Method Detail

getResourceIndex

protected abstract long getResourceIndex(org.osgi.framework.resource.Resource res)

compare

public int compare(org.osgi.framework.resource.Capability o1,
                   org.osgi.framework.resource.Capability o2)
Specified by:
compare in interface Comparator<org.osgi.framework.resource.Capability>


Copyright © 2012. All Rights Reserved.