Author: gpetracek
Date: Thu Mar 6 08:28:10 2014
New Revision: 1574800
URL: http://svn.apache.org/r1574800
Log:
updated content
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=1574800&r1=1574799&r2=1574800&view=diff
==============================================================================
--- deltaspike/site/trunk/content/core.mdtext (original)
+++ deltaspike/site/trunk/content/core.mdtext Thu Mar 6 08:28:10 2014
@@ -358,16 +358,16 @@ A locale resolver provides the current l
[TODO]
-## External Resource Loading
+## Injecting Resources
DeltaSpike has simple APIs for performing basic resource loading and property
file reading.
:::java
@Inject
- @ExternalResource("myfile.properties")
+ @InjectableResource("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).
+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
`InjectableResourceProvider` interface to allow reading from alternate sources,
if needed (e.g. database LOBs, NoSQL storage areas).
## Exception Control