@ -169,9 +169,9 @@ used (i.e. when a method is called), and the scope acts as a cache of
@@ -169,9 +169,9 @@ used (i.e. when a method is called), and the scope acts as a cache of
initialized values. To force a bean to re-initialize on the next
method call you just need to invalidate its cache entry.</p><p>The <codeclass="literal">RefreshScope</code> is a bean in the context and it has a public method
<codeclass="literal">refreshAll()</code> to refresh all beans in the scope by clearing the
target cache. There is also a <codeclass="literal">refresh(String)</code> method to refresh an
individual bean by name. This functionality is exposed in the
<codeclass="literal">/refresh</code> endpoint (over HTTP or JMX).</p><divclass="note"style="margin-left: 0.5in; margin-right: 0.5in;"><tableborder="0"summary="Note"><tr><tdrowspan="2"align="center"valign="top"width="25"><imgalt="[Note]"src="images/note.png"></td><thalign="left">Note</th></tr><tr><tdalign="left"valign="top"><p><codeclass="literal">@RefreshScope</code> works (technically) on an <codeclass="literal">@Configuration</code>
target cache. This functionality is exposed in the
<codeclass="literal">/refresh</code> endpoint (over HTTP or JMX). There is also a <codeclass="literal">refresh(String)</code> method to refresh an
individual bean by name.</p><divclass="note"style="margin-left: 0.5in; margin-right: 0.5in;"><tableborder="0"summary="Note"><tr><tdrowspan="2"align="center"valign="top"width="25"><imgalt="[Note]"src="images/note.png"></td><thalign="left">Note</th></tr><tr><tdalign="left"valign="top"><p><codeclass="literal">@RefreshScope</code> works (technically) on an <codeclass="literal">@Configuration</code>
class, but it might lead to surprising behaviour: e.g. it does <spanclass="strong"><strong>not</strong></span>
mean that all the <codeclass="literal">@Beans</code> defined in that class are themselves
<codeclass="literal">@RefreshScope</code>. Specifically, anything that depends on those beans
@ -169,9 +169,9 @@ used (i.e. when a method is called), and the scope acts as a cache of
@@ -169,9 +169,9 @@ used (i.e. when a method is called), and the scope acts as a cache of
initialized values. To force a bean to re-initialize on the next
method call you just need to invalidate its cache entry.</p><p>The <codeclass="literal">RefreshScope</code> is a bean in the context and it has a public method
<codeclass="literal">refreshAll()</code> to refresh all beans in the scope by clearing the
target cache. There is also a <codeclass="literal">refresh(String)</code> method to refresh an
individual bean by name. This functionality is exposed in the
<codeclass="literal">/refresh</code> endpoint (over HTTP or JMX).</p><divclass="note"style="margin-left: 0.5in; margin-right: 0.5in;"><tableborder="0"summary="Note"><tr><tdrowspan="2"align="center"valign="top"width="25"><imgalt="[Note]"src="images/note.png"></td><thalign="left">Note</th></tr><tr><tdalign="left"valign="top"><p><codeclass="literal">@RefreshScope</code> works (technically) on an <codeclass="literal">@Configuration</code>
target cache. This functionality is exposed in the
<codeclass="literal">/refresh</code> endpoint (over HTTP or JMX). There is also a <codeclass="literal">refresh(String)</code> method to refresh an
individual bean by name.</p><divclass="note"style="margin-left: 0.5in; margin-right: 0.5in;"><tableborder="0"summary="Note"><tr><tdrowspan="2"align="center"valign="top"width="25"><imgalt="[Note]"src="images/note.png"></td><thalign="left">Note</th></tr><tr><tdalign="left"valign="top"><p><codeclass="literal">@RefreshScope</code> works (technically) on an <codeclass="literal">@Configuration</code>
class, but it might lead to surprising behaviour: e.g. it does <spanclass="strong"><strong>not</strong></span>
mean that all the <codeclass="literal">@Beans</code> defined in that class are themselves
<codeclass="literal">@RefreshScope</code>. Specifically, anything that depends on those beans
@ -269,9 +269,9 @@ initialized values. To force a bean to re-initialize on the next
@@ -269,9 +269,9 @@ initialized values. To force a bean to re-initialize on the next
method call you just need to invalidate its cache entry.</simpara>
<simpara>The <literal>RefreshScope</literal> is a bean in the context and it has a public method
<literal>refreshAll()</literal> to refresh all beans in the scope by clearing the
target cache. There is also a <literal>refresh(String)</literal> method to refresh an
individual bean by name. This functionality is exposed in the
<literal>/refresh</literal> endpoint (over HTTP or JMX).</simpara>
target cache. This functionality is exposed in the
<literal>/refresh</literal> endpoint (over HTTP or JMX). There is also a <literal>refresh(String)</literal> method to refresh an
individual bean by name.</simpara>
<note>
<simpara><literal>@RefreshScope</literal> works (technically) on an <literal>@Configuration</literal>
class, but it might lead to surprising behaviour: e.g. it does <emphasisrole="strong">not</emphasis>