com.google.code.rees.scope.struts2
Class StrutsConversationArbitrator

java.lang.Object
  extended by com.google.code.rees.scope.conversation.configuration.DefaultConversationArbitrator
      extended by com.google.code.rees.scope.struts2.StrutsConversationArbitrator
All Implemented Interfaces:
ConversationArbitrator, Serializable

public class StrutsConversationArbitrator
extends DefaultConversationArbitrator

The ConversationArbitrator for use with Struts2.

Author:
rees.byars
See Also:
Serialized Form

Field Summary
protected  ActionProvider actionProvider
           
protected  boolean usePackageNesting
           
 
Fields inherited from class com.google.code.rees.scope.conversation.configuration.DefaultConversationArbitrator
actionSuffix
 
Constructor Summary
StrutsConversationArbitrator()
           
 
Method Summary
protected  Set<Class<?>> getConversationControllers(Class<?> clazz)
           
protected  String[] getConversationsWithInheritance(Class<?> clazz, String actionSuffix)
          
protected  String[] getConversationsWithoutInheritance(Class<?> clazz, String actionSuffix)
          
protected  Collection<String> getPackageBasedConversations(Class<?> clazz, String actionSuffix)
           
protected  boolean isConversationController(Class<?> clazz)
          
protected  boolean isModelDrivenConversation(Class<?> clazz)
           
 void setActionProvider(ActionProvider actionProvider)
           
 void setActionSuffix(String suffix)
          The default suffix is "Controller".
 void setUsePackageNesting(String usePackageNesting)
           
 
Methods inherited from class com.google.code.rees.scope.conversation.configuration.DefaultConversationArbitrator
getBeginConversations, getCandidateConversationFields, getCandidateConversationMethods, getConversations, getConversations, getConversations, getConversations, getConversations, getEndConversations, getName, getName, isAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

usePackageNesting

protected boolean usePackageNesting

actionProvider

protected ActionProvider actionProvider
Constructor Detail

StrutsConversationArbitrator

public StrutsConversationArbitrator()
Method Detail

setActionSuffix

@Property(value="struts.convention.action.suffix")
public void setActionSuffix(String suffix)
Description copied from class: DefaultConversationArbitrator
The default suffix is "Controller". So the conversation for a class named MyExampleFlowController would be my-example-flow. Use this setter to use a different suffix.

Specified by:
setActionSuffix in interface ConversationArbitrator
Overrides:
setActionSuffix in class DefaultConversationArbitrator

setUsePackageNesting

@Property(value="conversation.package.nesting")
public void setUsePackageNesting(String usePackageNesting)

setActionProvider

@Component
public void setActionProvider(ActionProvider actionProvider)

getConversationControllers

protected Set<Class<?>> getConversationControllers(Class<?> clazz)
Overrides:
getConversationControllers in class DefaultConversationArbitrator

getConversationsWithInheritance

protected String[] getConversationsWithInheritance(Class<?> clazz,
                                                   String actionSuffix)

Overrides:
getConversationsWithInheritance in class DefaultConversationArbitrator

getConversationsWithoutInheritance

protected String[] getConversationsWithoutInheritance(Class<?> clazz,
                                                      String actionSuffix)

Overrides:
getConversationsWithoutInheritance in class DefaultConversationArbitrator

isConversationController

protected boolean isConversationController(Class<?> clazz)

Overrides:
isConversationController in class DefaultConversationArbitrator

isModelDrivenConversation

protected boolean isModelDrivenConversation(Class<?> clazz)

getPackageBasedConversations

protected Collection<String> getPackageBasedConversations(Class<?> clazz,
                                                          String actionSuffix)


Copyright © 2012-2013. All Rights Reserved.