org.apache.myfaces.orchestra.conversation.versioning.spring
Class SpringVersioningScope

java.lang.Object
  extended by org.apache.myfaces.orchestra.conversation.spring.AbstractSpringOrchestraScope
      extended by org.apache.myfaces.orchestra.conversation.versioning.spring.SpringVersioningScope
All Implemented Interfaces:
org.apache.myfaces.orchestra.conversation.ConversationFactory, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.Scope, org.springframework.context.ApplicationContextAware

public class SpringVersioningScope
extends org.apache.myfaces.orchestra.conversation.spring.AbstractSpringOrchestraScope

Example

A sample configuration for a versioning conversation scope with serialization (default):
 <bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
   <property name="scopes">
     <map>
       <entry key="conversation.versioning">
         <bean class="org.apache.myfaces.orchestra.conversation.versioning.spring.SpringVersioningScope">
           <property name="versioningStrategy" value="serialization"/>
         </bean>
       </entry>
     </map>
   </property>
 </bean>
 

Conversation properties

The following properties can be defined on a scope and then apply to any conversation that is created to hold a bean of this scope:


Field Summary
static String VERSIONING_STRATEGY_CLONING
           
static String VERSIONING_STRATEGY_SERIALIZATION
           
 
Constructor Summary
SpringVersioningScope()
           
 
Method Summary
 org.apache.myfaces.orchestra.conversation.Conversation createConversation(org.apache.myfaces.orchestra.conversation.ConversationContext context, String name)
          Implementation of ConversationFactory interface.
 String getVersioningStrategy()
           
 void setVersioningStrategy(String strategy)
          Must be "serialization" at the moment.
 
Methods inherited from class org.apache.myfaces.orchestra.conversation.spring.AbstractSpringOrchestraScope
assertSameScope, buildBeanName, defineBeanPostProcessors, get, getAdvices, getApplicationContext, getConversationForBean, getConversationId, getConversationNameForBean, getExplicitConversationName, getProxy, getRealBean, notifyAccessConversation, registerDestructionCallback, remove, setAdvices, setApplicationContext, setAutoProxy, setBeanFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSIONING_STRATEGY_SERIALIZATION

public static final String VERSIONING_STRATEGY_SERIALIZATION
See Also:
Constant Field Values

VERSIONING_STRATEGY_CLONING

public static final String VERSIONING_STRATEGY_CLONING
See Also:
Constant Field Values
Constructor Detail

SpringVersioningScope

public SpringVersioningScope()
Method Detail

getVersioningStrategy

public String getVersioningStrategy()

setVersioningStrategy

public void setVersioningStrategy(String strategy)
Must be "serialization" at the moment. "cloning" will be supported in future versions.

Defaults to "serialization".


createConversation

public org.apache.myfaces.orchestra.conversation.Conversation createConversation(org.apache.myfaces.orchestra.conversation.ConversationContext context,
                                                                                 String name)
Implementation of ConversationFactory interface.



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