The Spring Framework

org.springframework.aop.aspectj.autoproxy
Class AspectJPrecedenceAwareOrderComparator

java.lang.Object
  extended by org.springframework.core.OrderComparator
      extended by org.springframework.aop.aspectj.autoproxy.AspectJPrecedenceAwareOrderComparator
All Implemented Interfaces:
Comparator

 class AspectJPrecedenceAwareOrderComparator
extends OrderComparator

Orders AspectJ advice/advisors by precedence (not invocation order).

Given two pieces of advice, a and b:

Important :- note that unlike a normal comparator a return of 0 means we don't care about the ordering, not that the two elements must be sorted identically. Used with AspectJ PartialOrder class.

Since:
2.0
Author:
Adrian Colyer

Constructor Summary
AspectJPrecedenceAwareOrderComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
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

AspectJPrecedenceAwareOrderComparator

AspectJPrecedenceAwareOrderComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator
Overrides:
compare in class OrderComparator

The Spring Framework

Copyright © 2002-2006 The Spring Framework.