Java Code Examples for org.springframework.webflow.mvc.servlet.FlowHandlerAdapter#setFlowExecutor()

The following examples show how to use org.springframework.webflow.mvc.servlet.FlowHandlerAdapter#setFlowExecutor() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WebFlowConfig.java    From tutorial with MIT License 5 votes vote down vote up
@Bean
public FlowHandlerAdapter flowHandlerAdapter() {
    FlowHandlerAdapter handlerAdapter = new FlowHandlerAdapter();
    handlerAdapter.setFlowExecutor(this.flowExecutor());
    handlerAdapter.setSaveOutputToFlashScopeOnRedirect(true);
    return handlerAdapter;
}
 
Example 2
Source File: SpringletsWebFlowConfiguration.java    From springlets with Apache License 2.0 5 votes vote down vote up
/**
 * Spring MVC {@link HandlerAdapter} that encapsulates the generic workflow associated 
 * with executing flows.
 * 
 * Set the handler adapter to pass flow output to the Spring MVC flash scope. 
 *
 * @return the Spring MVC HandlerAdapter for web flows
 */
@Bean
public FlowHandlerAdapter flowHandlerAdapter() {
  FlowHandlerAdapter handlerAdapter = new FlowHandlerAdapter();
  handlerAdapter.setFlowExecutor(this.flowExecutor());

  handlerAdapter.setSaveOutputToFlashScopeOnRedirect(this.saveOutputToflashScope);
  return handlerAdapter;
}
 
Example 3
Source File: WebMvcConfig.java    From enhanced-pet-clinic with Apache License 2.0 5 votes vote down vote up
@Bean
public FlowHandlerAdapter flowHandlerAdapter() {
	FlowHandlerAdapter handlerAdapter = new FlowHandlerAdapter();
	handlerAdapter.setFlowExecutor(this.webFlowConfig.flowExecutor());
	handlerAdapter.setSaveOutputToFlashScopeOnRedirect(true);
	return handlerAdapter;
}
 
Example 4
Source File: WebMvcConfig.java    From tutorials with MIT License 5 votes vote down vote up
@Bean
public FlowHandlerAdapter flowHandlerAdapter() {
    FlowHandlerAdapter handlerAdapter = new FlowHandlerAdapter();
    handlerAdapter.setFlowExecutor(this.webFlowConfig.flowExecutor());
    handlerAdapter.setSaveOutputToFlashScopeOnRedirect(true);
    return handlerAdapter;
}