Constructor and Description |
---|
OrderUtils() |
Modifier and Type | Method and Description |
---|---|
static Integer |
getOrder(AnnotatedElement element)
Return the order declared on the specified
element . |
static Integer |
getOrder(Class<?> type)
Return the order on the specified
type . |
static int |
getOrder(Class<?> type,
int defaultOrder)
Return the order on the specified
type , or the specified
default value if none can be found. |
static Integer |
getOrder(Class<?> type,
Integer defaultOrder)
Return the order on the specified
type , or the specified
default value if none can be found. |
static Integer |
getPriority(Class<?> type)
Return the value of the
javax.annotation.Priority annotation
declared on the specified type, or null if none. |
public static int getOrder(Class<?> type, int defaultOrder)
type
, or the specified
default value if none can be found.
Takes care of @Order
and @javax.annotation.Priority
.
type
- the type to handlegetPriority(Class)
@Nullable public static Integer getOrder(Class<?> type, @Nullable Integer defaultOrder)
type
, or the specified
default value if none can be found.
Takes care of @Order
and @javax.annotation.Priority
.
type
- the type to handlegetPriority(Class)
@Nullable public static Integer getOrder(Class<?> type)
type
.
Takes care of @Order
and @javax.annotation.Priority
.
type
- the type to handlenull
if none can be foundgetPriority(Class)
@Nullable public static Integer getOrder(AnnotatedElement element)
element
.
Takes care of @Order
and @javax.annotation.Priority
.
element
- the annotated element (e.g. type or method)null
if none can be found