This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
You can create an object which implements ApplicationListener and deploy it in your application context. It will get invoked whenever an ApplicationContext event occurs. One of those events is when the ApplicationContext is either initialized or refreshed.