summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBob Lee <crazybob@crazybob.org>2009-09-30 21:15:57 +0000
committerBob Lee <crazybob@crazybob.org>2009-09-30 21:15:57 +0000
commitbfc0343b82a4ade1ef57a233b93a3c482fa2dc10 (patch)
tree922fd211598ef1f001f26e3325236cbdef014320 /src
parenta7c7a5ac0b878cc6bbef67f289b3700d4b200f4b (diff)
downloadplatform_external_jsr330-bfc0343b82a4ade1ef57a233b93a3c482fa2dc10.tar.gz
platform_external_jsr330-bfc0343b82a4ade1ef57a233b93a3c482fa2dc10.tar.bz2
platform_external_jsr330-bfc0343b82a4ade1ef57a233b93a3c482fa2dc10.zip
Added rule to spec requiring injectors to support injecting user-specified subtypes. Clarified and otherwise improved docs on Tck. Added a test case that mixes package private with overridding.
git-svn-id: https://atinject.googlecode.com/svn/trunk@44 3bc8319c-20ab-11de-9edc-3f40a397ab60
Diffstat (limited to 'src')
-rw-r--r--src/javax/inject/Inject.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/javax/inject/Inject.java b/src/javax/inject/Inject.java
index be85146..fe41467 100644
--- a/src/javax/inject/Inject.java
+++ b/src/javax/inject/Inject.java
@@ -31,9 +31,11 @@ import static java.lang.annotation.ElementType.FIELD;
* injected first, followed by fields, and then methods. Fields and methods
* in superclasses are injected before those in subclasses. Ordering of
* injection among fields and among methods in the same class is not specified.
- * Which values are injected depends upon the injector implementation and its
- * configuration.
- *
+ * For a given type T and optional qualifier, an injector must
+ * be able to inject a user-specified subclass of T that has an injectable
+ * constructor. Beyond that, which values are injected depend upon the
+ * injector implementation and its configuration.
+ *
* <p>Injectable constructors are annotated with {@code @Inject} and accept
* zero or more dependencies as arguments. {@code @Inject} can apply to at most
* one constructor per class.
@@ -117,7 +119,7 @@ import static java.lang.annotation.ElementType.FIELD;
*
* <p>A {@linkplain Qualifier qualifier} may annotate an injectable field
* or parameter and, combined with the type, identify the implementation to
- * inject. Qualifiers are optional, and when used with {@code @Inject} in
+ * inject. Qualifiers are optional, and when used with {@code @Inject} in
* injector-independent classes, no more than one qualifier should annotate a
* single field or parameter. The qualifiers are bold in the following example:
*