Jan 14th, 2011, 10:19 AM
Event publishing: ApplicationContext or ApplicationEventPublisherAware
Fairly new to Spring here..
My app has made heavy use of application events. I'm @Autowiring in my application context to the few classes that need to generate events. But now I'm seeing that I should have implemented ApplicationEventPublisherAware.
What are the benefits of going with one over the other?
This may be moot as I may move to publishing to a publish-subscribe-channel from spring-integration.