Lazy Initiation in Spring IOC As we know Spring’s bean factory is pre-initiate all the beans when first time creating the facory. This is good practise because if there is any dependency error everything can be resolved at the time of startup. This is not case in all the application scnarios. The following are the [...]
Archive | July 21st, 2008
Inner beans in Spring IOC
July 21, 2008
Inner beans Spring IOC allows Inner Beans declaration. We can declare a bean inside a beans. But, it has few restriction. Inner Beans are like annonymous beans where it is created and used on the fly. this beans cannot be used outside the enclosing beans. So, it is wise to avoid declaring the ‘ID‘ or [...]
Setter Injection in Spring IOC
July 21, 2008
Setter Injection This article presents how to write the Setter Injection in Spring IOC. There are two types of Dependency Injection(DI) techniques we can use. 1) Setter Injection and 2) Constructor Injection. As the name implies, using setter methods in a bean class the Spring IOC container will inject the dependencies. This technique is considered [...]
Constructor Injection in Spring IOC
July 21, 2008
Constructor Injection This article presents how to write the Constructor Injection in Spring IOC. There is two types of Dependency Injection(DI) techniques we can use. 1) Setter Injection and 2) Constructor Injection. As the name implies, using constructor the Spring IOC container will inject the dependencies. The constructor will take arguments based on number of [...]






July 21, 2008
0 Comments