Second Edition of Getting Started with Spring Framework book is now available from Amazon. The second edition contains additional material on Spring Web MVC , RESTful Web Services and Spring Security , and is based on Spring 4. You can download the sample code that comes with the book from the following Google code project: https://code.google.com/p/getting-started-with-spring-framework-2edition/ You can post your questions and feedback on the following Google group: https://groups.google.com/forum/#!forum/getting-started-with-spring-framework Paperback: http://www.amazon.com/dp/1491011912 Kindle: http://www.amazon.com/Getting-started-Spring-Framework-Edition-ebook/dp/B00JAUV4AQ
You can now buy PDF version of Getting started with Spring Framework (covers Spring 5), 4th Edition from Smashwords: https://www.smashwords.com/books/view/842918 You can use the coupon code RY27H to get 10% off on the list price.
The following sequence diagram taken from Getting started with Spring Framework shows how Spring's BeanPostProcessor works: The above diagram shows that when an instance of Spring container is created, MyBeanPostProcessor (a BeanPostProcessor implementation) is created before any regular Spring bean (like ABean ) is created. When an ABean instance is created, it is passed to MyBeanPostProcessor 's postProcessBeforeInitialization and postProcessAfterInitialization methods. Notice that MyBeanPostProcessor 's postProcessBeforeInitialization is invoked before ABean 's init method is invoked, and MyBeanPostProcessor 's postProcessAfterInitialization is invoked after ABean 's init method is invoked. You can use postProcessBeforeInitialization and postProcessAfterInitialization methods to make modifications to the ABean instance.
Comments
Post a Comment