This is the demo for spring IOC with dependency injection
There are three POJO Employee, Employee2 and Address
##SpringDemo.class
- First demo is to create the object in the traditional way
- Spring IOC creating object for us - using Bean Factory- in this method Employee object will be created only when its called - Lazy loading
- Spring IOC creating object for us - using ApplicationContext - in this method all Employeenobjects will be created at first
- Spring IOC creating object for us with Dependancy injection - using ApplicationContext - The Employee2 object will be created and wired with Address class
- in Emplyee and Employee2 class "myinit" method will be called when the object is initiazlied, "mydestroy" Method will be called when its destroyed.