Author: rogerk
Date: 2009-09-03 11:21:44 -0400 (Thu, 03 Sep 2009)
New Revision: 3642
Modified:
examples/branches/1.0.0.PREVIEW3/jsf2/pom.xml
examples/branches/1.0.0.PREVIEW3/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java
examples/branches/1.0.0.PREVIEW3/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/MaxNumber.java
examples/branches/1.0.0.PREVIEW3/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/Random.java
Log:
update for 330 annotations
Modified: examples/branches/1.0.0.PREVIEW3/jsf2/pom.xml
===================================================================
--- examples/branches/1.0.0.PREVIEW3/jsf2/pom.xml 2009-09-03 15:19:20 UTC (rev 3641)
+++ examples/branches/1.0.0.PREVIEW3/jsf2/pom.xml 2009-09-03 15:21:44 UTC (rev 3642)
@@ -5,7 +5,7 @@
<parent>
<groupId>org.jboss.webbeans.examples</groupId>
<artifactId>webbeans-examples-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.0.PREVIEW3</version>
</parent>
<groupId>org.jboss.webbeans.examples</groupId>
Modified:
examples/branches/1.0.0.PREVIEW3/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java
===================================================================
---
examples/branches/1.0.0.PREVIEW3/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java 2009-09-03
15:19:20 UTC (rev 3641)
+++
examples/branches/1.0.0.PREVIEW3/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java 2009-09-03
15:21:44 UTC (rev 3642)
@@ -6,7 +6,8 @@
import javax.annotation.PostConstruct;
import javax.enterprise.context.SessionScoped;
import javax.enterprise.inject.Instance;
-import javax.enterprise.inject.Named;
+import javax.inject.Inject;
+import javax.inject.Named;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.component.UIInput;
@@ -23,13 +24,13 @@
private int guess;
private int smallest;
- @MaxNumber
+ @MaxNumber @Inject
private int maxNumber;
private int biggest;
private int remainingGuesses;
- @Random Instance<Integer> randomNumber;
+ @Random @Inject Instance<Integer> randomNumber;
public Game()
{
Modified:
examples/branches/1.0.0.PREVIEW3/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/MaxNumber.java
===================================================================
---
examples/branches/1.0.0.PREVIEW3/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/MaxNumber.java 2009-09-03
15:19:20 UTC (rev 3641)
+++
examples/branches/1.0.0.PREVIEW3/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/MaxNumber.java 2009-09-03
15:21:44 UTC (rev 3642)
@@ -11,12 +11,12 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
-import javax.enterprise.inject.BindingType;
+import javax.inject.Qualifier;
@Target( { TYPE, METHOD, PARAMETER, FIELD })
@Retention(RUNTIME)
@Documented
-@BindingType
+@Qualifier
public @interface MaxNumber
{
Modified:
examples/branches/1.0.0.PREVIEW3/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/Random.java
===================================================================
---
examples/branches/1.0.0.PREVIEW3/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/Random.java 2009-09-03
15:19:20 UTC (rev 3641)
+++
examples/branches/1.0.0.PREVIEW3/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/Random.java 2009-09-03
15:21:44 UTC (rev 3642)
@@ -11,12 +11,12 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
-import javax.enterprise.inject.BindingType;
+import javax.inject.Qualifier;
@Target( { TYPE, METHOD, PARAMETER, FIELD })
@Retention(RUNTIME)
@Documented
-@BindingType
+@Qualifier
public @interface Random
{