Author: shane.bryzak(a)jboss.com
Date: 2009-10-03 04:05:50 -0400 (Sat, 03 Oct 2009)
New Revision: 11532
Modified:
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/account/AccountProducerBean.java
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/account/PasswordManagerBean.java
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/account/RegistrarBean.java
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/booking/BookingAgentBean.java
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/booking/BookingHistoryBean.java
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/inventory/HotelSearchBean.java
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/reference/CalendarReferenceProducer.java
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/security/AuthenticatorBean.java
Log:
fix compiler errors
Modified:
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/account/AccountProducerBean.java
===================================================================
---
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/account/AccountProducerBean.java 2009-10-02
21:07:07 UTC (rev 11531)
+++
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/account/AccountProducerBean.java 2009-10-03
08:05:50 UTC (rev 11532)
@@ -2,7 +2,7 @@
import javax.ejb.Stateless;
import javax.enterprise.context.SessionScoped;
-import javax.enterprise.inject.Default;
+import javax.inject.Inject;
import javax.inject.Named;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManager;
@@ -25,9 +25,9 @@
@PersistenceContext EntityManager em;
- @Default Identity identity;
+ @Inject Identity identity;
- @Default Credentials credentials;
+ @Inject Credentials credentials;
public
@Produces
Modified:
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/account/PasswordManagerBean.java
===================================================================
---
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/account/PasswordManagerBean.java 2009-10-02
21:07:07 UTC (rev 11531)
+++
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/account/PasswordManagerBean.java 2009-10-03
08:05:50 UTC (rev 11532)
@@ -3,7 +3,7 @@
import javax.annotation.PreDestroy;
import javax.ejb.Stateful;
import javax.enterprise.context.RequestScoped;
-import javax.enterprise.inject.Default;
+import javax.inject.Inject;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
@@ -23,9 +23,9 @@
{
@PersistenceContext EntityManager em;
- @Default StatusMessages statusMessages;
+ @Inject StatusMessages statusMessages;
- @Default RegistrationFormControls formControls;
+ @Inject RegistrationFormControls formControls;
@Registered User user;
Modified:
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/account/RegistrarBean.java
===================================================================
---
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/account/RegistrarBean.java 2009-10-02
21:07:07 UTC (rev 11531)
+++
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/account/RegistrarBean.java 2009-10-03
08:05:50 UTC (rev 11532)
@@ -3,7 +3,7 @@
import javax.annotation.PreDestroy;
import javax.ejb.Stateful;
import javax.enterprise.context.RequestScoped;
-import javax.enterprise.inject.Default;
+import javax.inject.Inject;
import javax.inject.Named;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManager;
@@ -27,13 +27,13 @@
{
@PersistenceContext EntityManager em;
- @Default StatusMessages statusMessages;
+ @Inject StatusMessages statusMessages;
- @Default RegistrationFormControls formControls;
+ @Inject RegistrationFormControls formControls;
- @Default Credentials credentials;
+ @Inject Credentials credentials;
- @Default Identity identity;
+ @Inject Identity identity;
private User newUser;
Modified:
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/booking/BookingAgentBean.java
===================================================================
---
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/booking/BookingAgentBean.java 2009-10-02
21:07:07 UTC (rev 11531)
+++
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/booking/BookingAgentBean.java 2009-10-03
08:05:50 UTC (rev 11532)
@@ -33,7 +33,7 @@
import javax.enterprise.context.ConversationScoped;
import javax.enterprise.context.RequestScoped;
import javax.enterprise.inject.AnnotationLiteral;
-import javax.enterprise.inject.Default;
+import javax.inject.Inject;
import javax.inject.Named;
import javax.enterprise.inject.Produces;
import javax.enterprise.inject.spi.BeanManager;
@@ -59,16 +59,16 @@
@PersistenceContext(type = EXTENDED) EntityManager em;
- @Default Conversation conversation;
+ @Inject Conversation conversation;
- @Default StatusMessages statusMessages;
+ @Inject StatusMessages statusMessages;
- @Default BookingFormControls formControls;
+ @Inject BookingFormControls formControls;
@Registered User user;
//@Fires @Confirmed Event<BookingEvent> bookingConfirmedEvent;
- @Default BeanManager manager;
+ @Inject BeanManager manager;
private Hotel hotelSelection;
Modified:
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/booking/BookingHistoryBean.java
===================================================================
---
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/booking/BookingHistoryBean.java 2009-10-02
21:07:07 UTC (rev 11531)
+++
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/booking/BookingHistoryBean.java 2009-10-03
08:05:50 UTC (rev 11532)
@@ -6,7 +6,7 @@
import javax.annotation.PreDestroy;
import javax.ejb.Stateful;
import javax.enterprise.context.SessionScoped;
-import javax.enterprise.inject.Default;
+import javax.inject.Inject;
import javax.inject.Named;
import javax.enterprise.inject.Produces;
import javax.enterprise.event.Observes;
@@ -33,7 +33,7 @@
@PersistenceContext EntityManager em;
- @Default StatusMessages statusMessages;
+ @Inject StatusMessages statusMessages;
@Registered User user;
Modified:
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/inventory/HotelSearchBean.java
===================================================================
---
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/inventory/HotelSearchBean.java 2009-10-02
21:07:07 UTC (rev 11531)
+++
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/inventory/HotelSearchBean.java 2009-10-03
08:05:50 UTC (rev 11532)
@@ -29,7 +29,7 @@
import javax.ejb.Remove;
import javax.ejb.Stateful;
import javax.enterprise.context.SessionScoped;
-import javax.enterprise.inject.Default;
+import javax.inject.Inject;
import javax.inject.Named;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManager;
@@ -49,7 +49,7 @@
@PersistenceContext EntityManager em;
- @Default SearchCriteria criteria;
+ @Inject SearchCriteria criteria;
private boolean nextPageAvailable = false;
Modified:
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/reference/CalendarReferenceProducer.java
===================================================================
---
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/reference/CalendarReferenceProducer.java 2009-10-02
21:07:07 UTC (rev 11531)
+++
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/reference/CalendarReferenceProducer.java 2009-10-03
08:05:50 UTC (rev 11532)
@@ -8,7 +8,7 @@
import java.util.Locale;
import javax.enterprise.context.ConversationScoped;
-import javax.enterprise.inject.Default;
+import javax.inject.Inject;
import javax.inject.Named;
import javax.enterprise.inject.Produces;
@@ -20,7 +20,7 @@
*/
public class CalendarReferenceProducer {
- @Default Locale locale;
+ @Inject Locale locale;
public
@Produces
Modified:
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/security/AuthenticatorBean.java
===================================================================
---
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/security/AuthenticatorBean.java 2009-10-02
21:07:07 UTC (rev 11531)
+++
examples/trunk/booking/ejb-jar/src/main/java/org/jboss/seam/examples/booking/security/AuthenticatorBean.java 2009-10-03
08:05:50 UTC (rev 11532)
@@ -1,7 +1,7 @@
package org.jboss.seam.examples.booking.security;
import javax.ejb.Stateless;
-import javax.enterprise.inject.Default;
+import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
@@ -23,7 +23,7 @@
@PersistenceContext EntityManager em;
- @Default Credentials credentials;
+ @Inject Credentials credentials;
public boolean authenticate()
{
Show replies by date