Update docs to use of @Bean inside a @Component
This commit is contained in:
parent
c2f4f97fa5
commit
30967d3b20
|
|
@ -6437,10 +6437,10 @@ public class FactoryMethodComponent {
|
||||||
}
|
}
|
||||||
}</programlisting>
|
}</programlisting>
|
||||||
|
|
||||||
<para>This class is a Spring component and has appliation specific code
|
<para>This class is a Spring component and has application specific code
|
||||||
contained in its <methodname>DoWork</methodname> method. However, it
|
contained in its <methodname>DoWork</methodname> method. However, it
|
||||||
also contributes a bean definition that has a factory method refering to
|
also contributes a bean definition that has a factory method referring
|
||||||
the method <methodname>publicInstance</methodname>. The
|
to the method <methodname>publicInstance</methodname>. The
|
||||||
<literal>@Bean</literal> annotation identifies the factory method and
|
<literal>@Bean</literal> annotation identifies the factory method and
|
||||||
also other bean definition properties, such as a qualifier value via the
|
also other bean definition properties, such as a qualifier value via the
|
||||||
<classname>@Qualifier</classname> annotation. Other method level
|
<classname>@Qualifier</classname> annotation. Other method level
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue