openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r791167 - /incubator/openwebbeans/trunk/samples/reservation/src/main/java/org/apache/webbeans/reservation/beans/LoginBean.java
Date Sat, 04 Jul 2009 19:00:44 GMT
Author: gerdogdu
Date: Sat Jul  4 19:00:43 2009
New Revision: 791167

URL: http://svn.apache.org/viewvc?rev=791167&view=rev
Log:
Reflect API changes.

Modified:
    incubator/openwebbeans/trunk/samples/reservation/src/main/java/org/apache/webbeans/reservation/beans/LoginBean.java

Modified: incubator/openwebbeans/trunk/samples/reservation/src/main/java/org/apache/webbeans/reservation/beans/LoginBean.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/reservation/src/main/java/org/apache/webbeans/reservation/beans/LoginBean.java?rev=791167&r1=791166&r2=791167&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/samples/reservation/src/main/java/org/apache/webbeans/reservation/beans/LoginBean.java
(original)
+++ incubator/openwebbeans/trunk/samples/reservation/src/main/java/org/apache/webbeans/reservation/beans/LoginBean.java
Sat Jul  4 19:00:43 2009
@@ -16,12 +16,10 @@
  */
 package org.apache.webbeans.reservation.beans;
 
-import java.lang.annotation.Annotation;
-
 import javax.enterprise.context.RequestScoped;
 import javax.enterprise.event.Event;
+import javax.enterprise.inject.Any;
 import javax.enterprise.inject.Named;
-import javax.event.Fires;
 
 import org.apache.commons.validator.GenericValidator;
 import org.apache.webbeans.reservation.bindings.DatabaseLogin;
@@ -44,7 +42,7 @@
     private String password;
 
     /**Inject of the event instance*/
-    private @Fires Event<LoggedInEvent> loggedInEvent;
+    private @Any Event<LoggedInEvent> loggedInEvent;
     
     /**Database related login controller*/
     private @DatabaseLogin LoginController loginController;
@@ -76,7 +74,7 @@
         
         //Fire Event
         LoggedInEvent event = new LoggedInEvent(user);
-        loggedInEvent.fire(event, new Annotation[0]);
+        loggedInEvent.fire(event);
         
         
         if(user.isAdmin())



Mime
View raw message