Example usage for org.springframework.core.annotation OrderUtils getOrder

List of usage examples for org.springframework.core.annotation OrderUtils getOrder

Introduction

In this page you can find the example usage for org.springframework.core.annotation OrderUtils getOrder.

Prototype

@Nullable
public static Integer getOrder(Class<?> type, @Nullable Integer defaultOrder) 

Source Link

Document

Return the order on the specified type , or the specified default value if none can be found.

Usage

From source file:org.springframework.web.method.ControllerAdviceBean.java

private static int initOrderFromBeanType(Class<?> beanType) {
    return OrderUtils.getOrder(beanType, Ordered.LOWEST_PRECEDENCE);
}