Author: gavin.king(a)jboss.com
Date: 2008-12-07 12:46:04 -0500 (Sun, 07 Dec 2008)
New Revision: 444
Modified:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Production.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/RequestScoped.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/SessionScoped.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Standard.java
Log:
allow these annotations on fields
Modified: ri/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java 2008-12-07
17:44:40 UTC (rev 443)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java 2008-12-07
17:46:04 UTC (rev 444)
@@ -17,6 +17,7 @@
package javax.webbeans;
+import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@@ -33,7 +34,7 @@
* @author Pete Muir
*/
-@Target( { TYPE, METHOD })
+@Target( { TYPE, METHOD, FIELD })
@Retention(RUNTIME)
@Documented
@ScopeType
Modified: ri/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java 2008-12-07
17:44:40 UTC (rev 443)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java 2008-12-07
17:46:04 UTC (rev 444)
@@ -17,6 +17,7 @@
package javax.webbeans;
+import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@@ -32,7 +33,7 @@
* @author Pete Muir
*/
-@Target( { TYPE, METHOD })
+@Target( { TYPE, METHOD, FIELD })
@Retention(RUNTIME)
@Documented
@ScopeType(passivating = true)
Modified: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java 2008-12-07 17:44:40
UTC (rev 443)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java 2008-12-07 17:46:04
UTC (rev 444)
@@ -17,6 +17,7 @@
package javax.webbeans;
+import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@@ -32,7 +33,7 @@
* @author Pete Muir
*/
-@Target( { METHOD, TYPE })
+@Target( { METHOD, TYPE, FIELD })
@Retention(RUNTIME)
@Documented
@ScopeType(normal = false)
Modified: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java 2008-12-07 17:44:40 UTC
(rev 443)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java 2008-12-07 17:46:04 UTC
(rev 444)
@@ -1,5 +1,6 @@
package javax.webbeans;
+import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@@ -16,7 +17,7 @@
@Named
@RequestScoped
@Stereotype
-@Target( { TYPE, METHOD })
+@Target( { TYPE, METHOD, FIELD })
@Retention(RUNTIME)
public @interface Model
{
Modified: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java 2008-12-07 17:44:40 UTC
(rev 443)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java 2008-12-07 17:46:04 UTC
(rev 444)
@@ -17,6 +17,7 @@
package javax.webbeans;
+import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@@ -32,7 +33,7 @@
* @author Pete Muir
*/
-@Target( { TYPE, METHOD })
+@Target( { TYPE, METHOD, FIELD })
@Retention(RUNTIME)
@Documented
public @interface Named
Modified: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Production.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Production.java 2008-12-07 17:44:40
UTC (rev 443)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Production.java 2008-12-07 17:46:04
UTC (rev 444)
@@ -17,6 +17,7 @@
package javax.webbeans;
+import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@@ -32,7 +33,7 @@
* @author Pete Muir
*/
-@Target( { TYPE, METHOD })
+@Target( { TYPE, METHOD, FIELD })
@Retention(RUNTIME)
@Documented
@DeploymentType
Modified: ri/trunk/webbeans-api/src/main/java/javax/webbeans/RequestScoped.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/RequestScoped.java 2008-12-07
17:44:40 UTC (rev 443)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/RequestScoped.java 2008-12-07
17:46:04 UTC (rev 444)
@@ -17,6 +17,7 @@
package javax.webbeans;
+import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@@ -32,7 +33,7 @@
* @author Pete Muir
*/
-@Target( { TYPE, METHOD })
+@Target( { TYPE, METHOD, FIELD })
@Retention(RUNTIME)
@Documented
@ScopeType
Modified: ri/trunk/webbeans-api/src/main/java/javax/webbeans/SessionScoped.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/SessionScoped.java 2008-12-07
17:44:40 UTC (rev 443)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/SessionScoped.java 2008-12-07
17:46:04 UTC (rev 444)
@@ -17,6 +17,7 @@
package javax.webbeans;
+import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@@ -32,7 +33,7 @@
* @author Pete Muir
*/
-@Target( { TYPE, METHOD })
+@Target( { TYPE, METHOD, FIELD })
@Retention(RUNTIME)
@Documented
@ScopeType(passivating = true)
Modified: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Standard.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Standard.java 2008-12-07 17:44:40
UTC (rev 443)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Standard.java 2008-12-07 17:46:04
UTC (rev 444)
@@ -17,6 +17,7 @@
package javax.webbeans;
+import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@@ -33,7 +34,7 @@
* @author Pete Muir
*/
-@Target( { TYPE, METHOD })
+@Target( { TYPE, METHOD, FIELD })
@Retention(RUNTIME)
@Documented
@DeploymentType