I want to extend and register my own function as detailed here:
http://static.springsource.org/spring/docs/3.0.x/reference/expressions.html see section: 6.5.11 Functions.
However, I wish to use this expression from a spring xml file and not in code as presented in the page.
How do I get a reference to the “StandardEvaluationContext” object used by spring while parsing my xml file? without having that spring can’t find my registered function.
Thanks,
Yair
So, the solution I found is:
}
you use from the spring file like this:
in a bean that needs to use the getDbConfig function: