spring-webflow
spring-webflow copied to clipboard
Add support for FlowBuilder post processing [SWF-310]
Keith Donald opened SWF-310 and commented
It is sometimes useful to perform post processing on a flow built by a builder before the builder returns it. An example would be a policy where a login flow should be introduced into all flows. Another example would be to throw exceptions on flows with a "restful" or "stateless" attribute that have view-states to catch developer bugs.
This is similiar in spirit to a BeanFactoryPostProcessor.
Affects: 1.0.3
Issue Links:
- #166 Add out-of-the-box login flow integration support ("is depended on by")
2 votes, 2 watchers
Erwin Vervaet commented
With a Java flow builder is ofcourse pretty simple to 'roll-your-own' for this.
Erwin Vervaet commented
Another idea: we could possibly do this using the decorator pattern, i.e. leveraging the FlowBuilder interface.