An Ordered object that goes before every plain Ordered one, whatever the numbers.
Infrastructure that other processors depend on uses it, for example a
post-processor that must have run before the application's own
post-processors are even created. Among themselves, priority-ordered
objects are sorted by order. Applications almost never need it;
Ordered or @Order is enough.
class EarlyPostProcessor extends BeanPostProcessor
implements PriorityOrdered {
@override
int get order => 0;
}
Spring (Java):
class EarlyPostProcessor implements BeanPostProcessor, PriorityOrdered {
@Override
public int getOrder() { return 0; }
}
- Implemented types
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- order → int
-
Where this object goes: lower values come first. Values are usually
small numbers, or offsets from highestPrecedence and
lowestPrecedence.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited