<p dir="ltr">Hi David, what you suggested is already covered by StableValue.supplier. You just need a Supplier instead of a micromanaged StableValue. StableValue is a low level logic-free container but also has static methods for higher level compositions, so it is easily confused like you did.</p>
<br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Mar 26, 2025, 1:09 AM David Vidal Escudero <<a href="mailto:david.vidal.escudero@gmail.com">david.vidal.escudero@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Good day,</div><div><br></div><div>I love this new feature, and it'll be really useful since I have lots of use cases at real work to try it on.</div><div><br></div><div>However, I'd like to point out that a less verbose form of this feature would be to pass a Supplier in the StableValue.of method, something like:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">static final StableValue<OrderController> ORDERS = StableValue.of(OrderController::new);</blockquote><div><br></div><div>Best regards, and thanks for your time.</div><div><br></div><div>David Vidal.</div></div>
</blockquote></div>