Spring Bean Life Cycle
by , 07-07-2012 at 06:18 PM (633 Views)
It is easy to understand the Spring Bean Life Cycle. It is required to perform some initialization on the instantiation of a bean so that it can enter into a usable state. When a bean is not required, some cleanup process is required to remove the bean from the container.
There is a list of activities which are performed behind the scenes during the life of bean instantiation and destruction. Here we will discuss only two important methods of bean life cycle callback. These methods are required at the bean destruction and bean initialization time.
The bean is declared with only init method and destroys method to teardown and defines a bean. These are the main use properties of any bean.
On initialization of a bean, the attributes that are specific to init method are called and the attributes that are specific to destroy method are called at the time when the bean is being destroyed.









Email Blog Entry
PDF to TIFF Conversion & Control...
Today, 11:39 AM in Java Software