Author: johndament
Date: Mon Dec 16 02:00:20 2013
New Revision: 1551104

URL: http://svn.apache.org/r1551104
Log:
Added information on ExternalResources.

Modified:
    deltaspike/site/trunk/content/core.mdtext

Modified: deltaspike/site/trunk/content/core.mdtext
URL: 
http://svn.apache.org/viewvc/deltaspike/site/trunk/content/core.mdtext?rev=1551104&r1=1551103&r2=1551104&view=diff
==============================================================================
--- deltaspike/site/trunk/content/core.mdtext (original)
+++ deltaspike/site/trunk/content/core.mdtext Mon Dec 16 02:00:20 2013
@@ -358,6 +358,17 @@ A locale resolver provides the current l
 
 [TODO]
 
+## External Resource Loading
+
+DeltaSpike has simple APIs for performing basic resource loading and property 
file reading.
+
+    :::java
+    @Inject
+    @ExternalResource("myfile.properties")
+    private InputStream inputStream;
+
+This can be used to read files, from classpath or on your local file system, 
using two default implementations: `ClasspathResourceProvider` and 
`FileResourceProvider`.  They can be extended as well by implementing the 
`ExternalResourceProvider` interface to allow reading from alternate sources, 
if needed (e.g. database LOBs, NoSQL storage areas).
+
 ## Exception Control
 
 Exception handling in DeltaSpike is based around the CDI eventing model.  While


Reply via email to