Author: buildbot
Date: Mon Dec 16 02:00:46 2013
New Revision: 890485

Log:
Staging update by buildbot for deltaspike

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

Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Dec 16 02:00:46 2013
@@ -1 +1 @@
-1551046
+1551104

Modified: websites/staging/deltaspike/trunk/content/core.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/core.html (original)
+++ websites/staging/deltaspike/trunk/content/core.html Mon Dec 16 02:00:46 2013
@@ -102,6 +102,7 @@
 </li>
 </ul>
 </li>
+<li><a href="#external-resource-loading">External Resource Loading</a></li>
 <li><a href="#exception-control">Exception Control</a></li>
 <li><a href="#exception-handling-usage">Exception Handling - Usage</a><ul>
 <li><a href="#eventing-into-the-exception-handling-framework">Eventing into 
the exception handling framework</a></li>
@@ -412,6 +413,15 @@ In case of a message-key, the message-re
 <p>A locale resolver provides the current locale. The locale is e.g. used to 
by a <code>MessageResolver</code> to choose the correct language for the 
message-text.</p>
 <p><strong>Configuration of a locale-resolver</strong></p>
 <p>[TODO]</p>
+<h2 id="external-resource-loading">External Resource Loading</h2>
+<p>DeltaSpike has simple APIs for performing basic resource loading and 
property file reading.</p>
+<div class="codehilite"><pre><span class="nd">@Inject</span>
+<span class="nd">@ExternalResource</span><span class="o">(</span><span 
class="s">&quot;myfile.properties&quot;</span><span class="o">)</span>
+<span class="kd">private</span> <span class="n">InputStream</span> <span 
class="n">inputStream</span><span class="o">;</span>
+</pre></div>
+
+
+<p>This can be used to read files, from classpath or on your local file 
system, using two default implementations: 
<code>ClasspathResourceProvider</code> and <code>FileResourceProvider</code>.  
They can be extended as well by implementing the 
<code>ExternalResourceProvider</code> interface to allow reading from alternate 
sources, if needed (e.g. database LOBs, NoSQL storage areas).</p>
 <h2 id="exception-control">Exception Control</h2>
 <p>Exception handling in DeltaSpike is based around the CDI eventing model.  
While
 the implementation of exception handlers may not be the same as a CDI event,


Reply via email to