public interface PriorityOrdered extends Ordered
Ordered
interface, expressing a priority
ordering: order values expressed by PriorityOrdered
objects
always apply before same order values expressed by plain
Ordered
objects.
This is primarily a special-purpose interface, used for objects where
it is particularly important to recognize prioritized objects
first, without even obtaining the remaining objects. A typical example:
prioritized post-processors in a Spring
org.springframework.context.ApplicationContext
.
Note: PriorityOrdered
post-processor beans are initialized in
a special phase, ahead of other post-processor beans. This subtly
affects their autowiring behavior: they will only be autowired against
beans which do not require eager initialization for type matching.
org.springframework.beans.factory.config.PropertyOverrideConfigurer
,
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE