|
spring-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.core.OrderComparator
org.springframework.core.annotation.AnnotationAwareOrderComparator
public class AnnotationAwareOrderComparator
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).
Ordered,
Order| Field Summary |
|---|
| Fields inherited from class org.springframework.core.OrderComparator |
|---|
INSTANCE |
| Constructor Summary | |
|---|---|
AnnotationAwareOrderComparator()
|
|
| Method Summary | |
|---|---|
protected int |
getOrder(java.lang.Object obj)
Determine the order value for the given object. |
| Methods inherited from class org.springframework.core.OrderComparator |
|---|
compare, sort, sort |
| 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 |
|---|
public AnnotationAwareOrderComparator()
| Method Detail |
|---|
protected int getOrder(java.lang.Object obj)
OrderComparatorThe default implementation checks against the Ordered
interface. Can be overridden in subclasses.
getOrder in class OrderComparatorobj - the object to check
Ordered.LOWEST_PRECEDENCE as fallback
|
spring-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||