org.springframework.webflow.engine.support
Class FlowDefinitionRedirectSelector

java.lang.Object
  extended by org.springframework.webflow.engine.support.FlowDefinitionRedirectSelector
All Implemented Interfaces:
ViewSelector

public class FlowDefinitionRedirectSelector
extends java.lang.Object
implements ViewSelector

Makes a FlowDefinitionRedirect selection when requested, calculating the flowDefinitionId and executionInput by evaluating an expression against the request context.

Author:
Keith Donald
See Also:
FlowDefinitionRedirect

Constructor Summary
FlowDefinitionRedirectSelector(org.springframework.binding.expression.Expression expression)
          Creates a new launch flow redirect selector.
 
Method Summary
 boolean isEntrySelectionRenderable(RequestContext context)
          Will the primary selection returned by 'makeEntrySelection' for the given request context be renderable in this request?
 ViewSelection makeEntrySelection(RequestContext context)
          Make a new "entry" view selection for the given request context.
 ViewSelection makeRefreshSelection(RequestContext context)
          Reconstitute a renderable view selection for the given request context to support a ViewState 'refresh' operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowDefinitionRedirectSelector

public FlowDefinitionRedirectSelector(org.springframework.binding.expression.Expression expression)
Creates a new launch flow redirect selector.

Parameters:
expression - the parsed flow redirect expression, evaluatable to the string format: flowDefinitionId?param1Name=parmValue¶m2Name=paramValue
Method Detail

isEntrySelectionRenderable

public boolean isEntrySelectionRenderable(RequestContext context)
Description copied from interface: ViewSelector
Will the primary selection returned by 'makeEntrySelection' for the given request context be renderable in this request?

"Renderable" view selections typically can have 'render-actions' execute before they are created. An example would be an ApplicationView that forwards to a view template like a JSP. "Non-renderable" view selections are things like a flow execution redirect--no render actually occurs, but only a redirect--rendering happens on the new redirect request.

Specified by:
isEntrySelectionRenderable in interface ViewSelector
Parameters:
context - the current request context of the executing flow
Returns:
true if yes, false otherwise

makeEntrySelection

public ViewSelection makeEntrySelection(RequestContext context)
Description copied from interface: ViewSelector
Make a new "entry" view selection for the given request context. Called when a view-state, end-state, or other interactive state type is entered.

Specified by:
makeEntrySelection in interface ViewSelector
Parameters:
context - the current request context of the executing flow
Returns:
the entry view selection

makeRefreshSelection

public ViewSelection makeRefreshSelection(RequestContext context)
Description copied from interface: ViewSelector
Reconstitute a renderable view selection for the given request context to support a ViewState 'refresh' operation.

Specified by:
makeRefreshSelection in interface ViewSelector
Parameters:
context - the current request context of the executing flow
Returns:
the view selection


Copyright © 2009 Spring Framework. All Rights Reserved.