*/
public class SpringAnnotationOrderResolver implements OrderResolver {
@Override
public int orderOf(EventListener listener) {
Order order = AnnotationUtils.findAnnotation(listener.getClass(), Order.class);
if (order == null && listener instanceof EventListenerProxy) {
order = AnnotationUtils.findAnnotation(((EventListenerProxy) listener).getTargetType(), Order.class);
}
return order == null ? 0 : order.value();
}