In the previous post we saw how the ApplicationContext as the more powerful container in Spring. In a BeanFactory based environment Spring provides us with the BeanFactoryAware interface to help a bean get access to its loading BeanFactory container.Similarly for the application context
Search This Blog
Sunday, 13 May 2012
Tuesday, 1 May 2012
Using the ApplicationContext
In all of the previous posts we have been working with the BeanFactory. However in order to use all of Spring's functionalities we need to use a more powerful version of the Spring Container.
Sunday, 29 April 2012
Bean Creation via Factory Method
The Spring Container does not have to instantiate beans via using the new keyword. Some times objects are created from factories. There are two ways to achieve the same - via a static factory method or via an instance factory method.
Thursday, 26 April 2012
Using BeanPostProcessors
Spring provides us with BeanPostProcessor classes that can be used to process beans before and after they have been configured by the container.
Tuesday, 24 April 2012
Creating default init and destroy methods
In earlier post we saw how Spring allowed us to define custom init and destroy methods - both via configuration and via code.As we are working with cars, we will need to check the engine on all cars before use and clean the car after use.
Subscribe to:
Posts (Atom)