Class OrderUtils
- java.lang.Object
- org.springframework.core.annotation.OrderUtils
Constructor Summary
Constructors Constructor Description OrderUtils()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
Constructor Detail
OrderUtils
public OrderUtils()
Method Detail
getOrder
public static Integer getOrder(Class<?> type)
Return the order on the specifiedtype
.Takes care of
@Order
and@javax.annotation.Priority
.- Parameters:
type
- the type to handle- Returns:
- the order value, or
null
if none can be found - See Also:
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
.- Parameters:
type
- the type to handle- Returns:
- the priority value, or the specified default order if none can be found
- See Also:
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.- Parameters:
type
- the type to handle- Returns:
- the priority value if the annotation is declared, or
null
if none