Class OrderUtils
java.lang.Object
org.springframework.core.annotation.OrderUtils
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic IntegerReturn the order on the specifiedtype.static intReturn the order on the specifiedtype, or the specified default value if none can be found.static IntegerReturn the order on the specifiedtype, or the specified default value if none can be found.static IntegergetOrder(AnnotatedElement element) Return the order declared on the specifiedelement.static IntegergetPriority(Class<?> type) Return the value of thejakarta.annotation.Priorityannotation declared on the specified type, ornullif none.
- 
Constructor Details- 
OrderUtilspublic OrderUtils()
 
- 
- 
Method Details- 
getOrderReturn the order on the specifiedtype, or the specified default value if none can be found.Takes care of @Orderand@jakarta.annotation.Priority.- Parameters:
- type- the type to handle
- Returns:
- the priority value, or the specified default order if none can be found
- Since:
- 5.0
- See Also:
 
- 
getOrderReturn the order on the specifiedtype, or the specified default value if none can be found.Takes care of @Orderand@jakarta.annotation.Priority.- Parameters:
- type- the type to handle
- Returns:
- the priority value, or the specified default order if none can be found
- See Also:
 
- 
getOrderReturn the order on the specifiedtype.Takes care of @Orderand@jakarta.annotation.Priority.- Parameters:
- type- the type to handle
- Returns:
- the order value, or nullif none can be found
- See Also:
 
- 
getOrderReturn the order declared on the specifiedelement.Takes care of @Orderand@jakarta.annotation.Priority.- Parameters:
- element- the annotated element (e.g. type or method)
- Returns:
- the order value, or nullif none can be found
- Since:
- 5.3
 
- 
getPriorityReturn the value of thejakarta.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
 
 
-