Support @Order on ApplicationListeners [SPR-12410] #17018
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Sam Brannen opened SPR-12410 and commented
Status Quo
AbstractApplicationEventMulticaster
currently sortsApplicationListener
instances based on theOrdered
interface, but the sorting algorithm does not honor annotations.At the time of this writing, there are two invocations of
OrderComparator.sort()
withinAbstractApplicationEventMulticaster
.Proposal
Refactor
AbstractApplicationEventMulticaster
to useAnnotationAwareOrderComparator.sort()
instead ofOrderComparator.sort()
.Affects: 3.0 GA
Issue Links:
@Order
("is duplicated by")@Order
annotations not consistently honored within DispatcherServlet and other parts of the frameworkReferenced from: commits 8eb7bee
The text was updated successfully, but these errors were encountered: