View RSS Feed

Recent Blogs Posts

  1. Spring Inner Beans

    by , 11-16-2011 at 05:15 PM
    Rather than configure beans separately and allow for Spring’s DI container to manage the injection of these beans into other beans, another means of wiring bean references is to embed a <bean> element directly in the <property> element. For example, the carDao property of the carService bean can be wired as follows:

    Java Code:
    <bean id="carService" class="com.acme.springexample.service.CarServiceImpl">
    <property name="carDao">

    Updated 11-30-2011 at 12:51 PM by Spring Framework

    Dependency Injection , Bean