spring-webflow icon indicating copy to clipboard operation
spring-webflow copied to clipboard

Support for Spring property replacement in webflow-config schema parser [SWF-1681]

Open spring-operator opened this issue 9 years ago • 3 comments

Scott Cantor opened SWF-1681 and commented

There is some support for Spring property replacement in the custom Spring XML parser that implements the webflow-config schema. For example, the webflow:flow-registry element passes through a BeanDefinitionBuilder, so Spring handles replacement of properties such as the base-path attribute.

It would be really useful to have that capability in the <flow-location> elements since that would allow outside injection of the paths to use for flows, but those elements are directly turned into FlowLocation objects, so there's no opportunity for Spring to handle the property replacement.

I can work on a patch for this if it would be considered for inclusion, it's just a matter of indirecting things through BeanDefinitionBuilders to give Spring a chance to do its work.


Affects: 2.4.2

Attachments:

spring-operator avatar Feb 23 '16 02:02 spring-operator

Rossen Stoyanchev commented

Yes a patch would be appreciated, thanks.

spring-operator avatar Feb 26 '16 15:02 spring-operator

Scott Cantor commented

Ok, will do, thank you.

spring-operator avatar Feb 26 '16 16:02 spring-operator

Scott Cantor commented

Patch attached that indirects all the object construction in that Spring parser. I tested the two cases we use, flow-location and flow-location-pattern, and properties work for both.

spring-operator avatar Feb 26 '16 20:02 spring-operator