SpringFramework_2001

Last modified by superadmin on 2018-01-12 20:19

Back to Item Set

<p/>
<!-- START TestItem -->
<p/>
<div class="TestItem">
<div class="TestItemQuestion">2001 Question:\

Select correct ways to inject one Spring bean into another.

</div>

Select 2 correct answer(s)!

<p/>
<ol class="MTestItemChoices" type='A'>
<li>

{code}
<beans>
  <bean id="foo" class="x.y.Foo">
      <constructor-arg ref="bar"/>
  </bean>
  <bean id="bar" class="x.y.Bar"/>
</beans>
{code}

</li>
<li>

{code}
<beans>
  <bean id="foo" class="x.y.Foo">
      <parameter ref="bar"/>
  </bean>
  <bean id="bar" class="x.y.Bar"/>
</beans>
{code}

</li>
<li>

{code}
<beans>
  <bean id="foo" class="x.y.Foo">
    <property name="bar"><ref bean="bar"/></property>
  </bean>
  <bean id="bar" class="x.y.Bar"/>
<beans>
{code}

</li>
<li>

{code}
<beans>
  <bean id="foo" class="x.y.Foo">
    <ref bean="bar>
  </bean>
  <bean id="bar" class="x.y.Bar"/>
<beans>
{code}

</li>
</ol>
<p/>
<div class="TestItemSkill"><!--$skillid>Skill: $skilltitle</div>
<p/>
</div>
<!-- END MTestItem -->
<p/>
<p/>


{{/velocity}}

Tags:
Created by Alina Vasiljeva on 2012-12-29 18:54
    
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4 - Documentation