|
|
@ -34,8 +34,12 @@ import org.springframework.core.Ordered; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class AnnotationAwareOrderComparator extends OrderComparator { |
|
|
|
public class AnnotationAwareOrderComparator extends OrderComparator { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Shared default instance of AnnotationAwareOrderComparator. |
|
|
|
|
|
|
|
*/ |
|
|
|
public static AnnotationAwareOrderComparator INSTANCE = new AnnotationAwareOrderComparator(); |
|
|
|
public static AnnotationAwareOrderComparator INSTANCE = new AnnotationAwareOrderComparator(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected int getOrder(Object obj) { |
|
|
|
protected int getOrder(Object obj) { |
|
|
|
if (obj instanceof Ordered) { |
|
|
|
if (obj instanceof Ordered) { |
|
|
|