ntext/spi/CreationalContext.html" title="interface in jakarta.enterprise.context.spi">CreationalContext</a>&lt;U&gt;,U&gt;&nbsp;callback)</pre>
<div class="block">Set a callback to produce a new instance.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>U</code> - instance type</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>callback</code> - a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class 