[webbeans-commits] Webbeans SVN: r3043 - examples/trunk/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Thu Jul 9 19:42:03 EDT 2009


Author: dallen6
Date: 2009-07-09 19:42:02 -0400 (Thu, 09 Jul 2009)
New Revision: 3043

Modified:
   examples/trunk/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java
Log:
Updated the JSF2 version of numberguess to latest JCDI API.

Modified: examples/trunk/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java
===================================================================
--- examples/trunk/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java	2009-07-09 18:36:17 UTC (rev 3042)
+++ examples/trunk/jsf2/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java	2009-07-09 23:42:02 UTC (rev 3043)
@@ -11,12 +11,13 @@
 import javax.faces.component.UIComponent;
 import javax.faces.component.UIInput;
 import javax.faces.context.FacesContext;
-import javax.inject.Obtains;
 
 @Named
 @SessionScoped
 public class Game implements Serializable
 {
+   private static final long serialVersionUID = 1L;
+
    private int number;
    
    private int guess;
@@ -28,7 +29,7 @@
    private int biggest;
    private int remainingGuesses;
    
-   @Obtains @Random Instance<Integer> randomNumber;
+   @Random Instance<Integer> randomNumber;
    
    public Game()
    {




More information about the weld-commits mailing list