类 OrderUtils
- java.lang.Object
- org.springframework.core.annotation.OrderUtils
构造器概要
构造器 构造器 说明 OrderUtils()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static Integer
getOrder(Class<?> type)
Return the order on the specifiedtype
.static Integer
getOrder(Class<?> type, Integer defaultOrder)
Return the order on the specifiedtype
, or the specified default value if none can be found.static Integer
getPriority(Class<?> type)
Return the value of thejavax.annotation.Priority
annotation declared on the specified type, ornull
if none.
构造器详细资料
OrderUtils
public OrderUtils()
方法详细资料
getOrder
public static Integer getOrder(Class<?> type)
Return the order on the specifiedtype
.Takes care of
@Order
and@javax.annotation.Priority
.- 参数:
type
- the type to handle- 返回:
- the order value, or
null
if none can be found - 另请参阅:
getPriority(Class)
getOrder
public static Integer getOrder(Class<?> type, Integer defaultOrder)
Return the order on the specifiedtype
, or the specified default value if none can be found.Takes care of
@Order
and@javax.annotation.Priority
.- 参数:
type
- the type to handle- 返回:
- the priority value, or the specified default order if none can be found
- 另请参阅:
getPriority(Class)
getPriority
public static Integer getPriority(Class<?> type)
Return the value of thejavax.annotation.Priority
annotation declared on the specified type, ornull
if none.- 参数:
type
- the type to handle- 返回:
- the priority value if the annotation is declared, or
null
if none