Can I use Spring Expression Language in an "alias" definition?

spring

Solution

It's not that it's not allowed, it's that there is no registered `BeanExpressionResolver` for aliases. You can use property placeholders `${}`, but that's a whole different component that handles it.

Problem

I am trying to create an alias in a spring context config like this: ``` <alias name="#{ ... code to lookup from config file ...}" alias="BeanName"/> ``` but it doesn't seem to execute the EL in the "name" attribute. Is this not allowed?

Original source