deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r918734 - in /websites/staging/deltaspike/trunk/content: ./ container-control.html
Date Fri, 08 Aug 2014 14:29:47 GMT
Author: buildbot
Date: Fri Aug  8 14:29:47 2014
New Revision: 918734

Log:
Staging update by buildbot for deltaspike

Modified:
    websites/staging/deltaspike/trunk/content/   (props changed)
    websites/staging/deltaspike/trunk/content/container-control.html

Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Aug  8 14:29:47 2014
@@ -1 +1 @@
-1616779
+1616780

Modified: websites/staging/deltaspike/trunk/content/container-control.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/container-control.html (original)
+++ websites/staging/deltaspike/trunk/content/container-control.html Fri Aug  8 14:29:47 2014
@@ -176,9 +176,9 @@ You might face such issues, if you would
 <p>Starting with 1.0.2, you can use DeltaSpike to power embedded Servlet runtimes.
 This work is done via Servlet Listeners.  The configuration is specific to each container,
below are some examples.</p>
 <p>The two main listeners are <code>CdiServletRequestListener</code> and
<code>CdiServletContextListener</code>.  <code>CdiServletRequestListener</code>
is responsible for starting a <code>RequestContext</code> on each incoming request.
 In most containers this is all you need.  For Tomcat specifically, you need to use <code>CdiServletContextListener</code>
which registers the <code>CdiServletRequestListener</code>.</p>
 <p>The main usecase for this feature is for lightweight embedded runtimes, microservices.
 For each of these, it is assumed that you are using the following start up code somewhere:</p>
-<div class="codehilite"><pre>    <span class="n">CdiContainer</span>
<span class="n">cdiContainer</span> <span class="o">=</span> <span
class="n">CdiContainerLoader</span><span class="o">.</span><span class="na">getCdiContainer</span><span
class="o">();</span>
-    <span class="n">cdiContainer</span><span class="o">.</span><span
class="na">boot</span><span class="o">();</span>
-    <span class="n">cdiContainer</span><span class="o">.</span><span
class="na">getContextControl</span><span class="o">().</span><span
class="na">startContexts</span><span class="o">();</span>
+<div class="codehilite"><pre><span class="n">CdiContainer</span>
<span class="n">cdiContainer</span> <span class="o">=</span> <span
class="n">CdiContainerLoader</span><span class="o">.</span><span class="na">getCdiContainer</span><span
class="o">();</span>
+<span class="n">cdiContainer</span><span class="o">.</span><span
class="na">boot</span><span class="o">();</span>
+<span class="n">cdiContainer</span><span class="o">.</span><span
class="na">getContextControl</span><span class="o">().</span><span
class="na">startContexts</span><span class="o">();</span>
 </pre></div>
 
 



Mime
View raw message