title: How to pass parameters to instantiation of a CDI @Dependent bean?
body: <p>How to pass runtime parameters to the instantiation of a <code>@Dependent</code> bean, obtained by <code>Instance&lt;T&gt;.get()</code> or equivalent in CDI?</p>
  <p>For instance, consider the code:</p>
  <pre><code>@Inject
  Instance&lt;Person&gt; instance;
  ...
  var name = &quot;Some One&quot;;
  var bean = instance.get();
  bean.setName(bean);
  </code></pre>
  <p>It may be desirable to pass the parameter in instantiation, to make the object immutable for example. Something like</p>
  <pre><code>@Inject
  Instance&lt;Person&gt; instance;
  ...
  var name = &quot;Some One&quot;;
  var bean = instance.get(name); // ?
  </code></pre>
  <p>Is there a syntax for that in current CDI?</p>