deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r900325 - in /websites/staging/deltaspike/trunk/content: ./ servlet.html
Date Thu, 06 Mar 2014 18:59:02 GMT
Author: buildbot
Date: Thu Mar  6 18:59:02 2014
New Revision: 900325

Log:
Staging update by buildbot for deltaspike

Modified:
    websites/staging/deltaspike/trunk/content/   (props changed)
    websites/staging/deltaspike/trunk/content/servlet.html

Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Mar  6 18:59:02 2014
@@ -1 +1 @@
-1574800
+1575005

Modified: websites/staging/deltaspike/trunk/content/servlet.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/servlet.html (original)
+++ websites/staging/deltaspike/trunk/content/servlet.html Thu Mar  6 18:59:02 2014
@@ -149,10 +149,10 @@ listeners and filters in your <code>web.
 
 <h1 id="injectable-servlet-objects">Injectable Servlet objects</h1>
 <p>The DeltaSpike Servlet module contains producers for many objects of a Servlet environment.

-All produces are using the special qualifier <code>@Web</code> for compatibility
with CDI 1.1, 
+All produces are using the special qualifier <code>@DeltaSpike</code> for compatibility
with CDI 1.1, 
 which supports the injection of some Servlet objects out of the box.</p>
 <p>The following code shows the general injection pattern to use for all objects.</p>
-<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">Web</span>
+<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">DeltaSpike</span>
 <span class="n">private</span> <span class="n">ServletObject</span>
<span class="n">servletObject</span><span class="p">;</span>
 </pre></div>
 
@@ -160,7 +160,7 @@ which supports the injection of some Ser
 <h2 id="servletcontext">ServletContext</h2>
 <p>The <code>ServletContext</code> is made available in the application
scope. It can be injected into any CDI bean 
 like this:</p>
-<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">Web</span>
+<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">DeltaSpike</span>
 <span class="n">private</span> <span class="n">ServletContext</span>
<span class="n">servletContext</span><span class="p">;</span>
 </pre></div>
 
@@ -168,13 +168,13 @@ like this:</p>
 <h2 id="servletrequest-httpservletrequest">ServletRequest / HttpServletRequest</h2>
 <p>The <code>ServletRequest</code> is made available in the request scope.
The current request can be injected 
 into a CDI bean like this:</p>
-<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">Web</span>
+<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">DeltaSpike</span>
 <span class="n">private</span> <span class="n">ServletRequest</span>
<span class="n">request</span><span class="p">;</span>
 </pre></div>
 
 
 <p>In case of HTTP requests you can also inject the <code>HttpServletRequest</code>:</p>
-<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">Web</span>
+<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">DeltaSpike</span>
 <span class="n">private</span> <span class="n">HttpServletRequest</span>
<span class="n">request</span><span class="p">;</span>
 </pre></div>
 
@@ -182,13 +182,13 @@ into a CDI bean like this:</p>
 <h2 id="servletresponse-httpservletresponse">ServletResponse / HttpServletResponse</h2>
 <p>The <code>ServletResponse</code> is made available in the request scope.
The current response can be 
 injected into a CDI bean like this:</p>
-<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">Web</span>
+<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">DeltaSpike</span>
 <span class="n">private</span> <span class="n">ServletResponse</span>
<span class="n">response</span><span class="p">;</span>
 </pre></div>
 
 
 <p>In case of HTTP requests you can also inject the <code>HttpServletResponse</code>:</p>
-<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">Web</span>
+<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">DeltaSpike</span>
 <span class="n">private</span> <span class="n">HttpServletResponse</span>
<span class="n">response</span><span class="p">;</span>
 </pre></div>
 
@@ -196,7 +196,7 @@ injected into a CDI bean like this:</p>
 <h2 id="httpsession">HttpSession</h2>
 <p>The <code>HttpSession</code> is made available in the session scope.
You can inject the current session 
 of a user into a CDI bean like this:</p>
-<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">Web</span>
+<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">DeltaSpike</span>
 <span class="n">private</span> <span class="n">HttpSession</span>
<span class="n">session</span><span class="p">;</span>
 </pre></div>
 
@@ -205,7 +205,7 @@ of a user into a CDI bean like this:</p>
 <h2 id="principal">Principal</h2>
 <p>The <code>Principal</code> is made available in the request scope. The
current principal can be 
 injected into a CDI bean like this:</p>
-<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">Web</span>
+<div class="codehilite"><pre><span class="p">@</span><span class="n">Inject</span>
<span class="p">@</span><span class="n">DeltaSpike</span>
 <span class="n">private</span> <span class="n">Principal</span> <span
class="n">principal</span><span class="p">;</span>
 </pre></div>
 



Mime
View raw message