Combining SpEL and property placeholders
Spring 3 has introduced a new expression language (SpEL) which can be used in bean definitions. The syntax itself is fairly well specified in the docs.
What isn't clear is how, if at all, SpEL interacts with the property placeholder syntax that was already present in prior versions. Does SpEL have support for property placeholders, or do I have to combine the syntax of both mechanisms and hope they combine?
Let me give a concrete example. I want to use the property syntax ${x.y.z}, backed by a custom PropertyPlaceholderConfigurer, but with the addition of "default value" syntax as provided by the elvis operator to handle cases where ${x.y.z} is undefined.
I've tried the following syntaxes without success:
#{x.y.z?'defaultValue'}
#{${x.y.z}?'defaultValue'}
Both result in an exception of some form or another.
The docs make no mention of this interaction, so either such a thing is not possible, or it's undocumented.
Anyone managed to do this?