deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rafab...@apache.org
Subject svn commit: r1656912 - in /deltaspike/site/trunk/content/documentation: core.html projectstage.html
Date Tue, 03 Feb 2015 20:57:24 GMT
Author: rafabene
Date: Tue Feb  3 20:57:24 2015
New Revision: 1656912

URL: http://svn.apache.org/r1656912
Log:
Site checkin for project Apache DeltaSpike Documentation

Modified:
    deltaspike/site/trunk/content/documentation/core.html
    deltaspike/site/trunk/content/documentation/projectstage.html

Modified: deltaspike/site/trunk/content/documentation/core.html
URL: http://svn.apache.org/viewvc/deltaspike/site/trunk/content/documentation/core.html?rev=1656912&r1=1656911&r2=1656912&view=diff
==============================================================================
--- deltaspike/site/trunk/content/documentation/core.html (original)
+++ deltaspike/site/trunk/content/documentation/core.html Tue Feb  3 20:57:24 2015
@@ -431,9 +431,10 @@ the lookup strategy you used before, you
 <div class="sect3">
 <h4 id="_type_safe_projectstage">Type-safe ProjectStage</h4>
 <div class="paragraph">
-<p>The DeltaSpike <a href="projectstage.html">ProjectStage</a> mechanism
allows to
-use configuration and implementations depending on the server
-environment you currently run on.</p>
+<p>The DeltaSpike <a href="projectstage.html">ProjectStage</a> mechanism
allows to use configuration and implementations depending on the server environment you currently
run on.</p>
+</div>
+<div class="paragraph">
+<p>DeltaSpike provides some pre-defined <a href="projectstage.html#_introduction">ProjectStages</a>
but it&#8217;s also possible to create your own <a href="projectstage.html#_custom_project_stages">Custom
Project Stage</a>, Please, check the <a href="projectstage.html">DeltaSpike ProjectStage</a>
page for more details.</p>
 </div>
 </div>
 <div class="sect3">

Modified: deltaspike/site/trunk/content/documentation/projectstage.html
URL: http://svn.apache.org/viewvc/deltaspike/site/trunk/content/documentation/projectstage.html?rev=1656912&r1=1656911&r2=1656912&view=diff
==============================================================================
--- deltaspike/site/trunk/content/documentation/projectstage.html (original)
+++ deltaspike/site/trunk/content/documentation/projectstage.html Tue Feb  3 20:57:24 2015
@@ -192,16 +192,10 @@ body {
 
         <div id="toc" class="toc">
             <ul class="sectlevel1">
-<li><a href="#_introduction">Introduction</a>
-<ul class="sectlevel2">
+<li><a href="#_introduction">Introduction</a></li>
 <li><a href="#_custom_project_stages">Custom Project Stages</a></li>
-<li><a href="#_projectstageproducer_for_third_party_portable_extensions">ProjectStageProducer
(for Third-party Portable Extensions)</a>
-<ul class="sectlevel3">
-<li><a href="#_setting_the_active_projectstage">Setting the Active ProjectStage</a></li>
-</ul>
-</li>
-</ul>
-</li>
+<li><a href="#_setting_the_active_projectstage">Setting the active ProjectStage</a></li>
+<li><a href="#_projectstageproducer_for_third_party_portable_extensions">ProjectStageProducer
(for Third-party Portable Extensions)</a></li>
 </ul>
             <hr>
             <div class="sect1">
@@ -261,8 +255,11 @@ DeltaSpike.</p>
 <span class="type">boolean</span> isDevProjectStage = ProjectStage.Development.equals(<span
class="local-variable">this</span>.projectStage);</code></pre>
 </div>
 </div>
-<div class="sect2">
-<h3 id="_custom_project_stages">Custom Project Stages</h3>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_custom_project_stages">Custom Project Stages</h2>
+<div class="sectionbody">
 <div class="paragraph">
 <p>It is possible to provide custom project stage implementations.
 Therefore, you have to provide an implementation of the
@@ -290,9 +287,20 @@ you will not use it directly.</p>
 </div>
 <div class="paragraph">
 <p>Configure your custom <code>ProjectStageHolder</code> in
-<code>META-INF/services/org.apache.deltaspike.core.api.projectstage.ProjectStageHolder</code>.
+<code>META-INF/services/org.apache.deltaspike.core.api.projectstage.ProjectStageHolder</code>.</p>
+</div>
+<div class="admonitionblock note">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-note" title="Note"></i>
+</td>
+<td class="content">
 The file has to provide the <em>fully qualified</em> class name of the custom
-implementation of the <code>ProjectStageHolder</code> interface.</p>
+implementation of the <code>ProjectStageHolder</code> interface.
+</td>
+</tr>
+</table>
 </div>
 <div class="paragraph">
 <p>Usage of a custom project stage:</p>
@@ -308,21 +316,10 @@ customProjectStage = CustomProjectStageH
 </div>
 </div>
 </div>
-<div class="sect2">
-<h3 id="_projectstageproducer_for_third_party_portable_extensions">ProjectStageProducer
(for Third-party Portable Extensions)</h3>
-<div class="paragraph">
-<p><code>ProjectStageProducer</code> provides the producer method which
allows to
-inject the current ProjectStage. However, in some cases it is needed to
-use ProjectStages also during the bootstrapping process of the CDI
-container and you cais not use injection. In such cases you can use
-<code>ProjectStageProducer.getInstance().getProjectStage()</code> to resolve
the
-current ProjectStage. This helper also contains helpers for unit-tests
-- e.g. <code>#setProjectStage</code>. However, those methods shouldis not be
needed
-for users (we just need them for testing different ProjectStage
-scenarios).</p>
 </div>
-<div class="sect3">
-<h4 id="_setting_the_active_projectstage">Setting the Active ProjectStage</h4>
+<div class="sect1">
+<h2 id="_setting_the_active_projectstage">Setting the active ProjectStage</h2>
+<div class="sectionbody">
 <div class="paragraph">
 <p>For setting the ProjectStage which shall get used in your application
 you can specify it in a few ways. The underlying mechanism used to
@@ -336,6 +333,20 @@ determine the string is the ConfigResolv
 </div>
 </div>
 </div>
+<div class="sect1">
+<h2 id="_projectstageproducer_for_third_party_portable_extensions">ProjectStageProducer
(for Third-party Portable Extensions)</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p><code>ProjectStageProducer</code> provides the producer method which
allows to
+inject the current ProjectStage. However, in some cases it is needed to
+use ProjectStages also during the bootstrapping process of the CDI
+container and you cais not use injection. In such cases you can use
+<code>ProjectStageProducer.getInstance().getProjectStage()</code> to resolve
the
+current ProjectStage. This helper also contains helpers for unit-tests
+- e.g. <code>#setProjectStage</code>. However, those methods shouldis not be
needed
+for users (we just need them for testing different ProjectStage
+scenarios).</p>
+</div>
 </div>
 </div>
         </div>



Mime
View raw message