Author: pete.muir(a)jboss.org
Date: 2009-01-05 13:54:57 -0500 (Mon, 05 Jan 2009)
New Revision: 775
Added:
examples/trunk/numberguess/WebContent/WEB-INF/jboss-web.xml
Modified:
examples/trunk/numberguess/WebContent/WEB-INF/web.xml
examples/trunk/numberguess/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java
Log:
update for passivation stuff, update for metadata deployers
Added: examples/trunk/numberguess/WebContent/WEB-INF/jboss-web.xml
===================================================================
--- examples/trunk/numberguess/WebContent/WEB-INF/jboss-web.xml
(rev 0)
+++ examples/trunk/numberguess/WebContent/WEB-INF/jboss-web.xml 2009-01-05 18:54:57 UTC
(rev 775)
@@ -0,0 +1,8 @@
+<jboss-web>
+ <class-loading java2ClassLoadingCompliance="false">
+ <loader-repository>
+ webbeans.jboss.org:loader=webbeans-numberguess
+
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
+ </loader-repository>
+ </class-loading>
+</jboss-web>
Modified: examples/trunk/numberguess/WebContent/WEB-INF/web.xml
===================================================================
--- examples/trunk/numberguess/WebContent/WEB-INF/web.xml 2009-01-05 18:22:16 UTC (rev
774)
+++ examples/trunk/numberguess/WebContent/WEB-INF/web.xml 2009-01-05 18:54:57 UTC (rev
775)
@@ -28,9 +28,5 @@
<session-config>
<session-timeout>10</session-timeout>
</session-config>
-
- <listener>
-
<listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-class>
- </listener>
</web-app>
Modified:
examples/trunk/numberguess/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java
===================================================================
---
examples/trunk/numberguess/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java 2009-01-05
18:22:16 UTC (rev 774)
+++
examples/trunk/numberguess/src/main/java/org/jboss/webbeans/examples/numberguess/Game.java 2009-01-05
18:54:57 UTC (rev 775)
@@ -8,7 +8,6 @@
import javax.faces.context.FacesContext;
import javax.webbeans.AnnotationLiteral;
import javax.webbeans.Current;
-import javax.webbeans.Initializer;
import javax.webbeans.Named;
import javax.webbeans.SessionScoped;
import javax.webbeans.manager.Manager;
@@ -21,7 +20,9 @@
private int guess;
private int smallest;
- private int biggest;
+
+ @MaxNumber
+ private transient int biggest;
private int remainingGuesses;
@Current Manager manager;
@@ -29,12 +30,6 @@
public Game()
{
}
-
- @Initializer
- Game(@MaxNumber int maxNumber)
- {
- this.biggest = maxNumber;
- }
public int getNumber()
{
Show replies by date