Skip to content

Commit

Permalink
Added test for placeholder in alias definition
Browse files Browse the repository at this point in the history
Issue: SPR-11018
(cherry picked from commit e9a24da)
  • Loading branch information
jhoeller committed Nov 5, 2013
1 parent fe46a01 commit df7b661
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -7,11 +7,19 @@

<context:annotation-config/>

<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="properties">
<props>
<prop key="myProp">larry</prop>
</props>
</property>
</bean>

<bean id="larryBean" class="org.springframework.beans.factory.xml.QualifierAnnotationTests$Person">
<property name="name" value="LarryBean"/>
</bean>

<alias name="larryBean" alias="someAlias"/>
<alias name="${myProp}Bean" alias="someAlias"/>

<alias name="someAlias" alias="stooge"/>

Expand Down

0 comments on commit df7b661

Please sign in to comment.