The basic concept of the Inversion of Control pattern (dependency injection) is that programmers don’t need to create your objects but describe how they should be created. Don’t directly connect your components and services together in code but describe which services are needed by which components in a configuration file. A container (in the case of the Spring framework, the IOC container) is responsible for all this. In a IOC scenario, the container creates all the objects, connects them together by setting the necessary properties, and determines when methods will be invoked. The implementation pattern types for IOC used by SpringFramework are as follows:
* Dependencies can be assigned through JavaBeans properties (setter methods).
* Dependencies are provided as constructor parameters and are not exposed as JavaBeans Setter properties.
Popularity: 1% [?]
Related posts:
- Java tutorial/code – What is IOC container in Spring Framework The bean factory concept is foundation of Spring as an...
- Java tutorial/code – What is Aspect-oriented programming in Spring and its benefits compared to other J2EE technologies AOP is a programming technique adopted in spring framework to...
- Java tutorial/code – How to choose between BeanFactory and ApplicationContext Interface in IOC container The org.springframework.beans and org.springframework.context packages provide the basis for the...
- Java tutorial/code – How Spring Flexibility distinguishes it from other J2ee frameworks Sometimes it is not possible to completely switch to a...
- Java tutorial/code – What is UDDI Protocol In simple words this is a way for describing available...
Related posts brought to you by Yet Another Related Posts Plugin.
RSS Feed
Twitter

май 20th, 2010
admin
Posted in 
