Class OrderUtils
java.lang.Object
org.springframework.core.annotation.OrderUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the order on the specifiedtype.static intReturn the order on the specifiedtype, or the specified default value if none can be found.Return the order on the specifiedtype, or the specified default value if none can be found.getOrder(AnnotatedElement element) Return the order declared on the specifiedelement.getPriority(Class<?> type) Return the value of thejakarta.annotation.Priorityannotation declared on the specified type, ornullif none.
-
Constructor Details
-
OrderUtils
public OrderUtils()
-
-
Method Details
-
getOrder
Return 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:
-
getOrder
Return 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:
-
getOrder
Return 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:
-
getOrder
Return the order declared on the specifiedelement.Takes care of
@Orderand@jakarta.annotation.Priority.- Parameters:
element- the annotated element (for example, type or method)- Returns:
- the order value, or
nullif none can be found - Since:
- 5.3
-
getPriority
Return 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
-