Spring integration
Another well known framework for dependency injection is the Spring Framework (http://projects.spring.io/spring-framework/). Drools can be easily integrated to other components in an application using Spring, and we have an example of this integration in the chapter-11/chapter-11-spring
project of the code bundle.
Introducing Spring Framework
The Spring Framework is, in its core, an integration framework that allows binding of different Java components together using Inversion of Control. Through XML configuration files or injection annotations, it lets us tie together bean constructors and setters to initialize the runtime of our applications. Besides that base functionality, Spring has been in the market for several years now, and has a lot of adoption and pluggable libraries that allow us to bind all sorts of functionalities to our apps, including Data Access libraries, Aspect-oriented programming features, URL binding, and Transaction management.