You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by ge...@apache.org on 2009/03/26 22:40:15 UTC

svn commit: r758869 - in /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation: ./ ConversationService.java jsf/ jsf/JSFConversationServiceImpl.java

Author: gerdogdu
Date: Thu Mar 26 21:40:15 2009
New Revision: 758869

URL: http://svn.apache.org/viewvc?rev=758869&view=rev
Log:
Adding SPI for conversation service.

Added:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/ConversationService.java   (with props)
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/jsf/
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/jsf/JSFConversationServiceImpl.java   (with props)

Added: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/ConversationService.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/ConversationService.java?rev=758869&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/ConversationService.java (added)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/ConversationService.java Thu Mar 26 21:40:15 2009
@@ -0,0 +1,25 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ * 
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.webbeans.spi.conversation;
+
+public interface ConversationService
+{
+    public String getConversationId();
+    
+    public String getConversationSessionId();
+
+}

Propchange: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/ConversationService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/jsf/JSFConversationServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/jsf/JSFConversationServiceImpl.java?rev=758869&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/jsf/JSFConversationServiceImpl.java (added)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/jsf/JSFConversationServiceImpl.java Thu Mar 26 21:40:15 2009
@@ -0,0 +1,35 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ * 
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.webbeans.spi.conversation.jsf;
+
+import org.apache.webbeans.spi.conversation.ConversationService;
+import org.apache.webbeans.util.JSFUtil;
+
+public class JSFConversationServiceImpl implements ConversationService
+{
+
+    public String getConversationId()
+    {
+        return JSFUtil.getConversationId();
+    }
+
+    public String getConversationSessionId()
+    {
+        return JSFUtil.getSession().getId();
+    }
+
+}

Propchange: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/spi/conversation/jsf/JSFConversationServiceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native