org.springframework.webflow.executor.jsf
Class FlowFacesUtils

java.lang.Object
  extended by org.springframework.webflow.executor.jsf.FlowFacesUtils

public class FlowFacesUtils
extends java.lang.Object

Trivial helper utility class for SWF within a JSF environment. Used mainly to locate Web Flow services needed to run the JSF integration.

Author:
Keith Donald

Constructor Summary
FlowFacesUtils()
           
 
Method Summary
static FlowDefinitionLocator getDefinitionLocator(javax.faces.context.FacesContext context)
          Returns the locator for flow definitions to use in a JSF environment.
static FlowExecutionFactory getExecutionFactory(javax.faces.context.FacesContext context)
          Returns the flow execution factory to use in a JSF environment.
static FlowExecutionRepository getExecutionRepository(javax.faces.context.FacesContext context)
          Returns the flow execution repository to use in a JSF environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowFacesUtils

public FlowFacesUtils()
Method Detail

getDefinitionLocator

public static FlowDefinitionLocator getDefinitionLocator(javax.faces.context.FacesContext context)
Returns the locator for flow definitions to use in a JSF environment. Searches for a bean in the root web application context named FLOW_DEFINITION_LOCATOR_BEAN_NAME. A bean of type FlowDefinitionLocator must exist by this name.

Parameters:
context - the faces context
Returns:
the flow definition locator

getExecutionRepository

public static FlowExecutionRepository getExecutionRepository(javax.faces.context.FacesContext context)
Returns the flow execution repository to use in a JSF environment. Searches for a bean in the root web application context named FLOW_EXECUTION_REPOSITORY_BEAN_NAME. If no such bean exists with this name, falls back on the repository configured by a bean with name FLOW_EXECUTOR_BEAN_NAME. If no bean exists with that name, uses the default 'simple' repository implementation.

Parameters:
context - the faces context
Returns:
the flow execution repository

getExecutionFactory

public static FlowExecutionFactory getExecutionFactory(javax.faces.context.FacesContext context)
Returns the flow execution factory to use in a JSF environment. Searches for a bean in the root web application context named FLOW_EXECUTION_FACTORY_BEAN_NAME. If no such bean exists with this name, falls back on the repository configured by a bean with name FLOW_EXECUTOR_BEAN_NAME. If no bean exists with that name, uses the default factory implementation.

Parameters:
context - the faces context
Returns:
the flow execution factory


Copyright © 2004-2007. All Rights Reserved.