org.springframework.webflow.config
Class FlowSystemDefaults

java.lang.Object
  extended by org.springframework.webflow.config.FlowSystemDefaults
All Implemented Interfaces:
java.io.Serializable

public class FlowSystemDefaults
extends java.lang.Object
implements java.io.Serializable

Encapsulates overall flow system configuration defaults. Allows for centralized application of, and if necessary, overridding of system-wide default values.

Author:
Keith Donald
See Also:
Serialized Form

Constructor Summary
FlowSystemDefaults()
           
 
Method Summary
 MutableAttributeMap applyExecutionAttributes(MutableAttributeMap executionAttributes)
          Applies default execution attributes if necessary.
 RepositoryType applyIfNecessary(RepositoryType selectedType)
          Applies the default repository type if requested by the user.
 void setAlwaysRedirectOnPause(boolean alwaysRedirectOnPause)
          Overrides the alwaysRedirectOnPause execution attribute default.
 void setRepositoryType(RepositoryType repositoryType)
          Overrides the default repository type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlowSystemDefaults

public FlowSystemDefaults()
Method Detail

setAlwaysRedirectOnPause

public void setAlwaysRedirectOnPause(boolean alwaysRedirectOnPause)
Overrides the alwaysRedirectOnPause execution attribute default. Defaults to "true".

Parameters:
alwaysRedirectOnPause - the new default value
See Also:
ApplicationViewSelector.ALWAYS_REDIRECT_ON_PAUSE_ATTRIBUTE

setRepositoryType

public void setRepositoryType(RepositoryType repositoryType)
Overrides the default repository type.

Parameters:
repositoryType - the new default value

applyExecutionAttributes

public MutableAttributeMap applyExecutionAttributes(MutableAttributeMap executionAttributes)
Applies default execution attributes if necessary. Defaults will only apply in the case where the user did not configure a value, or explicitly requested the 'default' value.

Parameters:
executionAttributes - the user-configured execution attribute map
Returns:
the map with defaults applied as appropriate

applyIfNecessary

public RepositoryType applyIfNecessary(RepositoryType selectedType)
Applies the default repository type if requested by the user.

Parameters:
selectedType - the selected repository type (may be null if no selection was made)
Returns:
the repository type, with the default applied if necessary

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2007. All Rights Reserved.