@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).
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
Modifier and Type | Optional Element and Description |
---|---|
int |
value
The order value.
|
public abstract int value
Ordered.LOWEST_PRECEDENCE
.Ordered.getOrder()