org.apache.myfaces.custom.conversation
Class SpringConversationScope

java.lang.Object
  extended by org.apache.myfaces.custom.conversation.SpringConversationScope
All Implemented Interfaces:
org.springframework.beans.factory.config.Scope

public class SpringConversationScope
extends java.lang.Object
implements org.springframework.beans.factory.config.Scope

adapts the conversation scope to a new spring scope


Constructor Summary
SpringConversationScope()
           
 
Method Summary
protected  java.lang.String buildBeanName(java.lang.String name)
          strip off any spring namespace.
 java.lang.Object get(java.lang.String name, org.springframework.beans.factory.ObjectFactory objectFactory)
          get the conversation bean.
this will start a new conversation with the same name in case a conversation is not existent yet.
 java.lang.String getConversationId()
           
 void registerDestructionCallback(java.lang.String name, java.lang.Runnable runnable)
           
 java.lang.Object remove(java.lang.String name)
          remove the bean from the conversation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringConversationScope

public SpringConversationScope()
Method Detail

getConversationId

public java.lang.String getConversationId()
Specified by:
getConversationId in interface org.springframework.beans.factory.config.Scope

get

public java.lang.Object get(java.lang.String name,
                            org.springframework.beans.factory.ObjectFactory objectFactory)
get the conversation bean.
this will start a new conversation with the same name in case a conversation is not existent yet.

Specified by:
get in interface org.springframework.beans.factory.config.Scope

buildBeanName

protected java.lang.String buildBeanName(java.lang.String name)
strip off any spring namespace. TODO: Is this valid?


remove

public java.lang.Object remove(java.lang.String name)
remove the bean from the conversation. TODO: when will this be called .. and should we close the conversation then?

Specified by:
remove in interface org.springframework.beans.factory.config.Scope

registerDestructionCallback

public void registerDestructionCallback(java.lang.String name,
                                        java.lang.Runnable runnable)
Specified by:
registerDestructionCallback in interface org.springframework.beans.factory.config.Scope


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.