org.springframework.webflow.engine
Class NullViewSelector

java.lang.Object
  extended by org.springframework.webflow.engine.NullViewSelector
All Implemented Interfaces:
java.io.Serializable, ViewSelector

public final class NullViewSelector
extends java.lang.Object
implements ViewSelector, java.io.Serializable

Makes a null view selection, indicating no response should be issued.

Author:
Keith Donald
See Also:
ViewSelection.NULL_VIEW, Serialized Form

Field Summary
static ViewSelector INSTANCE
          The shared singleton NullViewSelector instance.
 
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
 

Field Detail

INSTANCE

public static final ViewSelector INSTANCE
The shared singleton NullViewSelector instance.

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 © 2004-2007. All Rights Reserved.