org.springframework.core.annotation
Class AnnotationAwareOrderComparator
java.lang.Object
   org.springframework.core.OrderComparator
org.springframework.core.OrderComparator
       org.springframework.core.annotation.AnnotationAwareOrderComparator
org.springframework.core.annotation.AnnotationAwareOrderComparator
- All Implemented Interfaces: 
- Comparator
- public class AnnotationAwareOrderComparator 
- extends OrderComparator
Comparator implementation that checks
 Ordered as well as the
 Order annotation, with an order value provided by an
 Ordered instance overriding a statically defined
 annotation value (if any).
- Since:
- 2.0.1
- Author:
- Juergen Hoeller
- See Also:
- Ordered,- Order
 
| Method Summary | 
| protected  int | getOrder(Object obj)Determine the order value for the given object.
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
AnnotationAwareOrderComparator
public AnnotationAwareOrderComparator()
getOrder
protected int getOrder(Object obj)
- Description copied from class: OrderComparator
- Determine the order value for the given object.
 The default implementation checks against the Orderedinterface. Can be overridden in subclasses.
 
 
- 
- Overrides:
- getOrderin class- OrderComparator
 
- 
- Parameters:
- obj- the object to check
- Returns:
- the order value, or Ordered.LOWEST_PRECEDENCEas fallback
 
Copyright © 2002-2008 The Spring Framework.