Announcement Announcement Module
Collapse
No announcement yet.
Bean aliasing Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bean aliasing

    I have a bean A that in some contexts, I would need to add additional "characteristics", such as aspects, or sometimes might need to refer to by a different name (maybe "A-host").

    What I would like to do, is this:

    context Z:
    <bean A .../>

    context Y:
    <import Z/>
    <bean A-prime ref=A />
    <bean A .../>

    So, in effect, in certain contexts, I wish to rename A, and define a new one in it's place. Is there any support for this?

    David

  • #2
    the syntax for: <bean A-prime ref=A />
    would be: <alias name="A" alias="A-prime"/>

    Comment

    Working...
    X