Java Code Examples for org.springframework.core.annotation.Order#value()

The following examples show how to use org.springframework.core.annotation.Order#value() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MessageInterceptorBeanPostProcessor.java    From synapse with Apache License 2.0 5 votes vote down vote up
private int getOrder(final Method method) {
    final int order;
    Order ann = AnnotationUtils.findAnnotation(method, Order.class);
    if (ann != null) {
        order = ann.value();
    } else {
        order = LOWEST_PRECEDENCE;
    }
    return order;
}
 
Example 2
Source File: ApplicationListenerMethodAdapter.java    From spring-analysis-note with MIT License 4 votes vote down vote up
private static int resolveOrder(Method method) {
	Order ann = AnnotatedElementUtils.findMergedAnnotation(method, Order.class);
	return (ann != null ? ann.value() : 0);
}
 
Example 3
Source File: ApplicationListenerMethodAdapter.java    From java-technology-stack with MIT License 4 votes vote down vote up
private static int resolveOrder(Method method) {
	Order ann = AnnotatedElementUtils.findMergedAnnotation(method, Order.class);
	return (ann != null ? ann.value() : 0);
}
 
Example 4
Source File: ApplicationListenerMethodAdapter.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
private int resolveOrder(Method method) {
	Order ann = AnnotatedElementUtils.findMergedAnnotation(method, Order.class);
	return (ann != null ? ann.value() : 0);
}
 
Example 5
Source File: ApplicationListenerMethodAdapter.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public int getOrder() {
	Order order = getMethodAnnotation(Order.class);
	return (order != null ? order.value() : 0);
}
 
Example 6
Source File: UiEventListenerMethodAdapter.java    From cuba with Apache License 2.0 4 votes vote down vote up
protected int resolveOrder(Method method) {
    Order ann = AnnotatedElementUtils.findMergedAnnotation(method, Order.class);
    return (ann != null ? ann.value() : 0);
}