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 IntegergetOrder(Class<?> type)Return the order on the specifiedtype.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.
Constructor Detail
OrderUtils
public OrderUtils()
Method Detail
getOrder
public static Integer getOrder(Class<?> type)
Return the order on the specifiedtype.Takes care of
@Orderand@javax.annotation.Priority.- Parameters:
type- the type to handle- Returns:
- the order value, or
nullif 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
@Orderand@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.Priorityannotation declared on the specified type, ornullif none.- Parameters:
type- the type to handle- Returns:
- the priority value if the annotation is declared, or
nullif none