You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by po...@apache.org on 2018/09/06 19:24:13 UTC

incubator-tamaya-site git commit: Add note about CDI injection: fields vs. constructors

Repository: incubator-tamaya-site
Updated Branches:
  refs/heads/master a1aaef030 -> 31718f653


Add note about CDI injection: fields vs. constructors

Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-site/commit/31718f65
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-site/tree/31718f65
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-site/diff/31718f65

Branch: refs/heads/master
Commit: 31718f65328c3317dcd688bf0031f020997670f7
Parents: a1aaef0
Author: A. Soroka <aj...@apache.org>
Authored: Tue Sep 4 21:20:12 2018 -0400
Committer: GitHub <no...@github.com>
Committed: Tue Sep 4 21:20:12 2018 -0400

----------------------------------------------------------------------
 content/documentation/extensions/mod_cdi.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-site/blob/31718f65/content/documentation/extensions/mod_cdi.adoc
----------------------------------------------------------------------
diff --git a/content/documentation/extensions/mod_cdi.adoc b/content/documentation/extensions/mod_cdi.adoc
index 41e1fb4..818d891 100644
--- a/content/documentation/extensions/mod_cdi.adoc
+++ b/content/documentation/extensions/mod_cdi.adoc
@@ -105,9 +105,9 @@ Though not recommended, it is possible to activate both extension at the same ti
 
 === Annotating your Classes
 
-Basically annotating your classes is stright forward. +@Config+ defines an additional CDI qualifier that is, depending
+Basically annotating your classes is straightforward. +@Config+ defines an additional CDI qualifier that is, depending
 on the module deployed, handled by a CDI producer (+tamaya-cdi-ee+) or the Tamaya SE injection mechanism $
-(+tamaya-cdi-se+). All types injected by this module are injected using _dependent scope_.
+(+tamaya-cdi-se+). All types injected by this module are injected using _dependent scope_. Keep in mind that values injected into fields by Tamaya cannot be used within constructors because https://docs.jboss.org/weld/reference/latest/en-US/html/injection.html[they will not yet have been injected].
 
 
 [source, java]