What is inner bean in Spring fremawork?

What is inner bean in Spring fremawork?

You can embed a <bean> element directly in the <property> element.

For Example:

<bean id=\"student\"
    class=\"com.StudentImpl\">
    <property name=\"course\">
      <bean class=\"com.CourseImpl\"/>
    </property>
  </bean>

The drawback of wiring a bean reference in this manner is that you can\'t reuse the instance of StudentImpl anywhere else.
            

By:Jalees
Date:2031-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher