An alias name can be given name using
element. It is difficult to always plan a ahead and create as many alias names for bean in its definition. Instead we can use
element to create an alias for a bean that is defined elsewhere.
<code>
<alias name=”myname” alias=”toname”/>
</code>
A bean in the same container which is named “myname”, may also after the use of this alias definition be referred to as ‘toname’.
No comments:
Post a Comment