deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r948605 - in /websites/staging/deltaspike/trunk/content: ./ documentation/configuration.html
Date Tue, 21 Apr 2015 12:21:23 GMT
Author: buildbot
Date: Tue Apr 21 12:21:23 2015
New Revision: 948605

Log:
Staging update by buildbot for deltaspike

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

Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Apr 21 12:21:23 2015
@@ -1 +1 @@
-1675085
+1675102

Modified: websites/staging/deltaspike/trunk/content/documentation/configuration.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/documentation/configuration.html (original)
+++ websites/staging/deltaspike/trunk/content/documentation/configuration.html Tue Apr 21
12:21:23 2015
@@ -571,6 +571,11 @@ implementations provided by DeltaSpike d
 classpath to get picked up as <code>ConfigSource`s you can also provide a
 class which implements the `PropertyFileConfig</code> interface.</p>
 </div>
+<div class="paragraph">
+<p>The method <code>isOptional</code> indicates whether your custom property
file is mandatory.
+If a mandatory property file is not found during deployment, DeltaSpike throws
+an <code>IllegalStateException</code> and stops the deployment.</p>
+</div>
 <div class="listingblock">
 <div class="content">
 <pre class="CodeRay highlight"><code data-lang="java"><span class="directive">public</span>
<span class="type">class</span> <span class="class">MyCustomPropertyFileConfig</span>
<span class="directive">implements</span> PropertyFileConfig
@@ -580,6 +585,12 @@ class which implements the `PropertyFile
     {
         <span class="keyword">return</span> <span class="string"><span
class="delimiter">&quot;</span><span class="content">myconfig.properties</span><span
class="delimiter">&quot;</span></span>;
     }
+
+    <span class="annotation">@Override</span>
+    <span class="directive">public</span> <span class="type">boolean</span>
isOptional()
+    {
+        <span class="keyword">return</span> <span class="predefined-constant">false</span>;
+    }
 }</code></pre>
 </div>
 </div>



Mime
View raw message