Whats is the order dependency injection in spring?

Viewed 4577

I have a question regarding spring dependency injection. I need to know whether dependency gets injected in the order in which it has been declared in the XML or there is no order as such.

Example :

<bean id="empBean" class="com.test.EmployeeBean">
      <property name="jdbcTemplate" ref="jdbcTemplate" />
       <property name="empAddress" ref="empAddress" />
    </bean>

Can we guarantee that always jdbcTemplate will be initialized before empName? Please help

2 Answers
Related