Announcement Announcement Module
No announcement yet.
obtain reference to container SPEL EvaluationContext? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • obtain reference to container SPEL EvaluationContext?

    anyone know of a way to obtain a reference to the container's implicit EvaluationContext for the purpose of registering variables and/or methods for use in expressions used for bean configuration?

    for instance, i would like to do something like:

    <bean id="#{ #myVariable }" ...>

    where i have registered myVariable within the containers evaluation context...

  • #2
    after a little more testing, i guess you can't use spel when specifying a bean id, so my immediate idea is thwarted, but the question may still be of value where spel is allowed, such as property values...