You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by bu...@apache.org on 2012/12/15 20:20:43 UTC
svn commit: r842534 - in /websites/staging/deltaspike/trunk/content: ./
deltaspike/core.html
Author: buildbot
Date: Sat Dec 15 19:20:42 2012
New Revision: 842534
Log:
Staging update by buildbot for deltaspike
Modified:
websites/staging/deltaspike/trunk/content/ (props changed)
websites/staging/deltaspike/trunk/content/deltaspike/core.html
Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Dec 15 19:20:42 2012
@@ -1 +1 @@
-1422318
+1422320
Modified: websites/staging/deltaspike/trunk/content/deltaspike/core.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/deltaspike/core.html (original)
+++ websites/staging/deltaspike/trunk/content/deltaspike/core.html Sat Dec 15 19:20:42 2012
@@ -132,6 +132,12 @@
</pre></div>
+<p>Furthermore, it's possible to trigger the injection of fields of any given instance, if it wasn't done by the container (e.g. because the class is in a jar-file without beans.xml) and <code>@Inject</code> is used for 1-n fields.</p>
+<p>Manually inject fields:</p>
+<div class="codehilite"><pre><span class="n">BeanProvider</span><span class="o">.</span><span class="n">injectFields</span><span class="p">(</span><span class="n">myObject</span><span class="p">);</span>
+</pre></div>
+
+
<h2 id="beanmanagerprovider">BeanManagerProvider</h2>
<p>This mechanism provides access to the <code>BeanManager</code> by registering the current <code>BeanManager</code> during the startup.
This is really handy if you like to access CDI functionality from places where no CDI based injection is available.