diff options
author | Bob Lee <crazybob@crazybob.org> | 2009-06-27 14:59:20 +0000 |
---|---|---|
committer | Bob Lee <crazybob@crazybob.org> | 2009-06-27 14:59:20 +0000 |
commit | 44285189f2d7df01dbd516a7d7e5fc2f54b51b9c (patch) | |
tree | 3e7207fc43d9a9695783cd0c142a1a6e21ce98ba | |
parent | 14a24881338db1de60f10a110a23b72230bcfc14 (diff) | |
download | platform_external_jsr330-44285189f2d7df01dbd516a7d7e5fc2f54b51b9c.tar.gz platform_external_jsr330-44285189f2d7df01dbd516a7d7e5fc2f54b51b9c.tar.bz2 platform_external_jsr330-44285189f2d7df01dbd516a7d7e5fc2f54b51b9c.zip |
Lightened restrictions on using @Target on qualifiers and scope annotations.
git-svn-id: https://atinject.googlecode.com/svn/trunk@8 3bc8319c-20ab-11de-9edc-3f40a397ab60
-rw-r--r-- | src/javax/inject/Qualifier.java | 8 | ||||
-rw-r--r-- | src/javax/inject/Scope.java | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/javax/inject/Qualifier.java b/src/javax/inject/Qualifier.java index 94ac3da..8ec8e4e 100644 --- a/src/javax/inject/Qualifier.java +++ b/src/javax/inject/Qualifier.java @@ -14,13 +14,13 @@ import static java.lang.annotation.ElementType.ANNOTATION_TYPE; * <li>is annotated with {@code @Qualifier}, {@code @Retention(RUNTIME)}, * and typically {@code @Documented}.</li> * <li>can have attributes.</li> - * <li>is <i>not</i> annotated with {@code @Target}. While this - * specification only covers applying qualifiers to fields and parameters, - * some injector configurations might use qualifier annotations in other - * places (on methods or classes for example).</li> * <li>may be part of the public API, much like the dependency type, but * unlike implementation types which needn't be part of the public * API.</li> + * <li>may have restricted usage if annotated with {@code @Target}. While + * this specification only covers applying qualifiers to fields and + * parameters, some injector configurations might use qualifier + * annotations in other places (on methods or classes for example).</li> * </ul> * * <p>For example: diff --git a/src/javax/inject/Scope.java b/src/javax/inject/Scope.java index 7eb2666..51a199d 100644 --- a/src/javax/inject/Scope.java +++ b/src/javax/inject/Scope.java @@ -36,10 +36,10 @@ import static java.lang.annotation.ElementType.ANNOTATION_TYPE; * <li>should not have attributes.</li> * <li>is typically not {@code @Inherited}, so scoping is orthogonal to * implementation inheritance.</li> - * <li>is <i>not</i> annotated with {@code @Target}. While this - * specification only covers applying scopes to classes, some injector - * configurations might use scopes in other places (on factory - * method results for example).</li> + * <li>may have restricted usage if annotated with {@code @Target}. While + * this specification only covers applying scopes to classes, some + * injector configurations might use scope annotations + * in other places (on factory method results for example).</li> * </ul> * * <p>For example: |