public interface PriorityOrdered extends Ordered
Ordered
interface, expressing a 'priority'
ordering: Order values expressed by PriorityOrdered objects always
apply before order values of 'plain' Ordered values.
This is primarily a special-purpose interface, used for objects
where it is particularly important to determine '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