Class OrderUtils
java.lang.Object
org.springframework.core.annotation.OrderUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Integer
Return the order on the specifiedtype
.static int
Return the order on the specifiedtype
, or the specified default value if none can be found.static Integer
Return the order on the specifiedtype
, or the specified default value if none can be found.static Integer
getOrder
(AnnotatedElement element) Return the order declared on the specifiedelement
.static Integer
getPriority
(Class<?> type) Return the value of thejakarta.annotation.Priority
annotation declared on the specified type, ornull
if 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
@Order
and@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
@Order
and@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
@Order
and@jakarta.annotation.Priority
.- Parameters:
type
- the type to handle- Returns:
- the order value, or
null
if none can be found - See Also:
-
getOrder
Return the order declared on the specifiedelement
.Takes care of
@Order
and@jakarta.annotation.Priority
.- Parameters:
element
- the annotated element (e.g. type or method)- Returns:
- the order value, or
null
if none can be found - Since:
- 5.3
-
getPriority
Return the value of thejakarta.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
-