T&nbsp;initResource(T&nbsp;resource)</pre>
<div class="block">Initialize the resource or sub-resource instance.

 All JAX-RS injectable fields in the resource instance will be properly initialized in
 the context of the current request processing scope.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - resource instance type.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>resource</code> - resource instance.</dd>
<dt><span class="returnLabel">Retu