Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » core » [javadoc | source]
org.springframework.core
public interface: PriorityOrdered [javadoc | source]

All Implemented Interfaces:
    Ordered

All Known Implementing Classes:
    AutowiredAnnotationBeanPostProcessor, RequiredAnnotationBeanPostProcessor, CommonAnnotationBeanPostProcessor, PropertyPlaceholderConfigurer, PersistenceAnnotationBeanPostProcessor, ServletContextPropertyPlaceholderConfigurer, InitDestroyAnnotationBeanPostProcessor, PropertyResourceConfigurer, PropertyOverrideConfigurer, PreferencesPlaceholderConfigurer

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 org.springframework.context.ApplicationContext .

Note: PriorityOrdered post-processor beans are initialized in a special phase, ahead of other post-postprocessor beans. This subtly affects their autowiring behavior: They will only be autowired against beans which do not require eager initialization for type matching.