You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While debugging PostProcessorRegistrationDelegate, I realized BeanFactoryPostProcessor works with Ordered(and PriorityOrdered) interface but not @Order annotation.
It would be great that such information is documented on BeanFactoryPostProcessor javadoc.
In general, for ordering, it would be great to have a mention in javadoc that whether the component works with Ordered interface and/or @Order annotation.
The text was updated successfully, but these errors were encountered:
sbrannen
changed the title
Mentioning "Ordered" and "@Order" in components javadoc
Mention Ordered and @Order support for components in Javadoc
Sep 14, 2019
I was thinking mainly lifecycle related classes, BeanFactoryPostProcessor, BeanPostProcessor, InitializingBean, etc.
For BeanFactoryPostProcessor and BeanPostProcessor I agree that it would be helpful to document ordering support for PriorityOrdered and Ordered.
I don't think any ordering is applied to InitializingBean implementations.
Also, it would be nice that @Order and Ordered have list of classes that will be applied ordering.
I fear that list would be too long and difficult to maintain. Support for ordering is normally documented in APIs that users interact with and or implement, not in something like @Order or Ordered.
While debugging
PostProcessorRegistrationDelegate
, I realizedBeanFactoryPostProcessor
works withOrdered
(andPriorityOrdered
) interface but not@Order
annotation.It would be great that such information is documented on
BeanFactoryPostProcessor
javadoc.In general, for ordering, it would be great to have a mention in javadoc that whether the component works with
Ordered
interface and/or@Order
annotation.The text was updated successfully, but these errors were encountered: