This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="lib" path="lib/test/aopalliance.jar"/>
|
||||
<classpathentry kind="lib" path="lib/buildtime/antlr.jar"/>
|
||||
<classpathentry kind="lib" path="lib/buildtime/asm.jar"/>
|
||||
<classpathentry kind="lib" path="lib/buildtime/asm-attrs.jar"/>
|
||||
@@ -33,6 +34,7 @@
|
||||
<classpathentry kind="lib" path="lib/buildtime/persistence-api.jar"/>
|
||||
<classpathentry kind="lib" path="lib/buildtime/portlet-api.jar"/>
|
||||
<classpathentry kind="lib" path="lib/buildtime/servlet-api.jar"/>
|
||||
<classpathentry kind="lib" path="lib/test/spring-aop.jar"/>
|
||||
<classpathentry kind="lib" path="lib/global/spring-beans.jar"/>
|
||||
<classpathentry kind="lib" path="lib/global/spring-binding.jar"/>
|
||||
<classpathentry kind="lib" path="lib/global/spring-context.jar"/>
|
||||
|
||||
@@ -8,13 +8,24 @@ import org.springframework.web.servlet.mvc.AbstractController;
|
||||
import org.springframework.webflow.context.servlet.ServletExternalContext;
|
||||
import org.springframework.webflow.executor.FlowExecutor;
|
||||
|
||||
/**
|
||||
* Adapter between the Spring MVC Controller layer and the Spring Web Flow engine. This controller allows Spring Web
|
||||
* Flow to run in "embedded" mode as a Controller within a DispatcherServlet.
|
||||
*/
|
||||
public class FlowController extends AbstractController {
|
||||
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
/**
|
||||
* Creates a new flow controller.
|
||||
*/
|
||||
public FlowController() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the flow executor to delegate to. The FlowExecutor is the entry point into Spring Web Flow.
|
||||
* @param flowExecutor the flow executor
|
||||
*/
|
||||
public void setFlowExecutor(FlowExecutor flowExecutor) {
|
||||
this.flowExecutor = flowExecutor;
|
||||
}
|
||||
@@ -25,4 +36,4 @@ public class FlowController extends AbstractController {
|
||||
context.executeFlowRequest(flowExecutor);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user