类 OrderUtils
- java.lang.Object
- org.springframework.core.annotation.OrderUtils
构造器概要
构造器 构造器 说明 OrderUtils()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static IntegergetOrder(Class<?> type)Return the order on the specifiedtype.static intgetOrder(Class<?> type, int defaultOrder)Return the order on the specifiedtype, or the specified default value if none can be found.static IntegergetOrder(Class<?> type, Integer defaultOrder)Return the order on the specifiedtype, or the specified default value if none can be found.static IntegergetPriority(Class<?> type)Return the value of thejavax.annotation.Priorityannotation declared on the specified type, ornullif none.
构造器详细资料
OrderUtils
public OrderUtils()
方法详细资料
getOrder
public static int getOrder(Class<?> type, int defaultOrder)
Return the order on the specifiedtype, or the specified default value if none can be found.Takes care of
@Orderand@javax.annotation.Priority.- 参数:
type- the type to handle- 返回:
- the priority value, or the specified default order if none can be found
- 从以下版本开始:
- 5.0
- 另请参阅:
getPriority(Class)
getOrder
@Nullable public static Integer getOrder(Class<?> type, @Nullable Integer defaultOrder)
Return the order on the specifiedtype, or the specified default value if none can be found.Takes care of
@Orderand@javax.annotation.Priority.- 参数:
type- the type to handle- 返回:
- the priority value, or the specified default order if none can be found
- 另请参阅:
getPriority(Class)
getOrder
@Nullable public static Integer getOrder(Class<?> type)
Return the order on the specifiedtype.Takes care of
@Orderand@javax.annotation.Priority.- 参数:
type- the type to handle- 返回:
- the order value, or
nullif none can be found - 另请参阅:
getPriority(Class)
getPriority
@Nullable public static Integer getPriority(Class<?> type)
Return the value of thejavax.annotation.Priorityannotation declared on the specified type, ornullif none.- 参数:
type- the type to handle- 返回:
- the priority value if the annotation is declared, or
nullif none