View RSS Feed

Recent Blogs Posts

  1. Using Setter Injection in Spring

    by , 11-15-2011 at 03:02 PM
    An object is created in the Spring IOC container by invoking the zero-argument constructor. In this Setter Dependency Injection, the IoC container injects a component's dependencies into the component via JavaBean-style setter methods. A component's setters expose the set of the dependencies the IoC container can manage The dependent object is then passed as a parameter to the setter method. The CarService object needs data access objects (DAO) to execute data- base operations. The data access ...

    Updated 11-15-2011 at 03:10 PM by Spring Framework (Error in constructor for class)

    Categories
    Dependency Injection , Bean , Configuration