deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r946656 - in /websites/staging/deltaspike/trunk/content: ./ documentation/scheduler.html
Date Tue, 07 Apr 2015 14:07:42 GMT
Author: buildbot
Date: Tue Apr  7 14:07:42 2015
New Revision: 946656

Log:
Staging update by buildbot for deltaspike

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

Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Apr  7 14:07:42 2015
@@ -1 +1 @@
-1671713
+1671851

Modified: websites/staging/deltaspike/trunk/content/documentation/scheduler.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/documentation/scheduler.html (original)
+++ websites/staging/deltaspike/trunk/content/documentation/scheduler.html Tue Apr  7 14:07:42
2015
@@ -197,6 +197,7 @@ body {
 <ul class="sectlevel2">
 <li><a href="#_1_declare_scheduler_module_dependencies">1. Declare Scheduler
Module Dependencies</a></li>
 <li><a href="#_2_declare_external_dependencies">2. Declare External Dependencies</a></li>
+<li><a href="#_3_declare_container_control_dependency">3. Declare Container Control
dependency</a></li>
 </ul>
 </li>
 <li><a href="#_use_the_module_features">Use the Module Features</a>
@@ -259,6 +260,29 @@ body {
 <span class="tag">&lt;/dependency&gt;</span></code></pre>
 </div>
 </div>
+</div>
+<div class="sect2">
+<h3 id="_3_declare_container_control_dependency">3. Declare Container Control dependency</h3>
+<div class="paragraph">
+<p>Scheduled jobs can have built-in CDI contexts started for the duration of their
execution using <code>@Scheduled#startScopes</code> which internally uses the
<a href="container-control.html">Container Control module</a>. The dependency
on the API and the appropriate implementation needs to be declared manually even if the feature
is not used. An example for the Weld implementation:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="xml"><span class="tag">&lt;dependency&gt;</span>
+    <span class="tag">&lt;groupId&gt;</span>org.apache.deltaspike.cdictrl<span
class="tag">&lt;/groupId&gt;</span>
+    <span class="tag">&lt;artifactId&gt;</span>deltaspike-cdictrl-api<span
class="tag">&lt;/artifactId&gt;</span>
+    <span class="tag">&lt;version&gt;</span>${deltaspike.version}<span
class="tag">&lt;/version&gt;</span>
+    <span class="tag">&lt;scope&gt;</span>compile<span class="tag">&lt;/scope&gt;</span>
+<span class="tag">&lt;/dependency&gt;</span>
+
+<span class="tag">&lt;dependency&gt;</span>
+    <span class="tag">&lt;groupId&gt;</span>org.apache.deltaspike.cdictrl<span
class="tag">&lt;/groupId&gt;</span>
+    <span class="tag">&lt;artifactId&gt;</span>deltaspike-cdictrl-weld<span
class="tag">&lt;/artifactId&gt;</span>
+    <span class="tag">&lt;version&gt;</span>${deltaspike.version}<span
class="tag">&lt;/version&gt;</span>
+    <span class="tag">&lt;scope&gt;</span>runtime<span class="tag">&lt;/scope&gt;</span>
+<span class="tag">&lt;/dependency&gt;</span></code></pre>
+</div>
+</div>
 </div>
 </div>
 </div>



Mime
View raw message