@Retention(value=RUNTIME) @Target(value={TYPE,METHOD,FIELD}) public @interface Order
Ordered
interface. Lower values have higher priority.
The default value is Ordered.LOWEST_PRECEDENCE
, indicating
lowest priority (losing to any other specified order value).
Since Spring 4.1, the standard Priority
can be used as
a drop-in replacement of this annotation.
NOTE: Annotation-based ordering is supported for specific kinds of
components only, e.g. for annotation-based AspectJ aspects. Spring container
strategies, on the other hand, are typically based on the Ordered
interface in order to allow for configurable ordering of each instance.
Ordered
,
AnnotationAwareOrderComparator
,
OrderUtils
,
Priority
Modifier and Type | Optional Element and Description |
---|---|
int |
value
The order value.
|
public abstract int value
Ordered.LOWEST_PRECEDENCE
.Ordered.getOrder()