org.springframework.core
Interface PriorityOrdered
- All Superinterfaces:
- Ordered
- All Known Implementing Classes:
- AutowiredAnnotationBeanPostProcessor, CommonAnnotationBeanPostProcessor, InitDestroyAnnotationBeanPostProcessor, PersistenceAnnotationBeanPostProcessor, PlaceholderConfigurerSupport, PreferencesPlaceholderConfigurer, PropertyOverrideConfigurer, PropertyPlaceholderConfigurer, PropertyResourceConfigurer, PropertySourcesPlaceholderConfigurer, RequiredAnnotationBeanPostProcessor, ServletContextPropertyPlaceholderConfigurer
public interface PriorityOrdered
- extends Ordered
Extension of the 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
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.
- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
PropertyOverrideConfigurer
,
PropertyPlaceholderConfigurer