From: Juergen H. <jho...@us...> - 2008-10-15 13:13:01
|
Update of /cvsroot/springframework/spring/docs/reference/src In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14287/docs/reference/src Modified Files: Tag: mbranch-2-0 beans.xml Log Message: fixed depends-on note Index: beans.xml =================================================================== RCS file: /cvsroot/springframework/spring/docs/reference/src/beans.xml,v retrieving revision 1.169.2.19 retrieving revision 1.169.2.20 diff -C2 -d -r1.169.2.19 -r1.169.2.20 *** beans.xml 21 Jul 2008 20:55:05 -0000 1.169.2.19 --- beans.xml 15 Oct 2008 13:12:44 -0000 1.169.2.20 *************** *** 1609,1619 **** <bean id="accountDao" class="x.y.jdbc.JdbcAccountDao" />]]></programlisting> <note> ! <para>The '<literal>depends-on</literal>' attribute and property is used not only to ! specify an initialization time dependency, but also to specify ! the corresponding destroy time dependency (in the case of ! <link linkend="beans-factory-scopes-singleton">singleton</link> beans only). Dependant beans that are defined in the ! '<literal>depends-on</literal>' attribute will be destroyed ! first prior to the relevant bean itself being destroyed. This thus ! allows you to control shutdown order too.</para> </note> </section> --- 1609,1620 ---- <bean id="accountDao" class="x.y.jdbc.JdbcAccountDao" />]]></programlisting> <note> ! <para>The '<literal>depends-on</literal>' attribute at the bean definition ! level is used not only to specify an initialization time dependency, but ! also to specify the corresponding destroy time dependency (in the case of ! <link linkend="beans-factory-scopes-singleton">singleton</link> beans ! only). Dependent beans that define a '<literal>depends-on</literal>' ! relationship with a given bean will be destroyed first - prior to the given ! bean itself being destroyed. As a consequence, '<literal>depends-on</literal>' ! may be used to control shutdown order too.</para> </note> </section> |