[seam-commits] Seam SVN: r12305 - modules/faces/trunk/src/main/java/org/jboss/seam/faces/context/conversation.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Mar 26 21:27:39 EDT 2010


Author: dan.j.allen
Date: 2010-03-26 21:27:39 -0400 (Fri, 26 Mar 2010)
New Revision: 12305

Added:
   modules/faces/trunk/src/main/java/org/jboss/seam/faces/context/conversation/NamedConversationAliasProducer.java
Log:
assign the alias "conversation" to the build-in Conversation bean


Added: modules/faces/trunk/src/main/java/org/jboss/seam/faces/context/conversation/NamedConversationAliasProducer.java
===================================================================
--- modules/faces/trunk/src/main/java/org/jboss/seam/faces/context/conversation/NamedConversationAliasProducer.java	                        (rev 0)
+++ modules/faces/trunk/src/main/java/org/jboss/seam/faces/context/conversation/NamedConversationAliasProducer.java	2010-03-27 01:27:39 UTC (rev 12305)
@@ -0,0 +1,21 @@
+package org.jboss.seam.faces.context.conversation;
+
+import javax.enterprise.context.Conversation;
+import javax.enterprise.inject.Produces;
+import javax.enterprise.inject.Typed;
+import javax.inject.Named;
+
+/**
+ * Exposes the {@link Conversation} under the simplified name "conversation"
+ * in addition to the default "javax.enterprise.context.conversation". This
+ * alias is provided for the page author's convenience.
+ *
+ * @author Dan Allen
+ */
+public class NamedConversationAliasProducer
+{
+   public @Produces @Named @Typed() Conversation getConversation(Conversation conversation)
+   {
+      return conversation;
+   }
+}



More information about the seam-commits mailing list