File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
spring-beans/src/test/resources/org/springframework/beans/factory Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change 44<beans default-lazy-init =" true" >
55
66 <bean name =" beta" class =" org.springframework.beans.factory.FactoryBeanTests$Beta" autowire =" byType" >
7- <property name =" name" value =" ${myName}" />
7+ <property name =" name" value =" ${myName}" />
88 </bean >
99
1010 <bean id =" alpha" class =" org.springframework.beans.factory.FactoryBeanTests$Alpha" autowire =" byType" />
1111
1212 <bean id =" gamma" class =" org.springframework.beans.factory.FactoryBeanTests$Gamma" />
1313
14- <bean id =" betaFactory" class =" org.springframework.beans.factory.FactoryBeanTests$BetaFactoryBean" autowire =" constructor" >
15- <property name =" beta" ref =" beta" />
16- </bean >
14+ <bean id =" betaFactory" class =" org.springframework.beans.factory.FactoryBeanTests$BetaFactoryBean" autowire =" constructor" >
15+ <property name =" beta" ref =" beta" />
16+ </bean >
1717
18- <bean id =" gammaFactory" factory-bean =" betaFactory " factory-method =" getGamma " />
18+ <bean id =" gammaFactory" factory-bean =" ${gammaFactory} " factory-method =" ${gamma} " />
1919
20- <bean id =" propertyPlaceholderConfigurer" class =" org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" >
21- <property name =" properties" >
22- <props >
23- <prop key =" myName" >yourName</prop >
24- </props >
25- </property >
26- </bean >
20+ <bean id =" propertyPlaceholderConfigurer" class =" org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" >
21+ <property name =" properties" >
22+ <props >
23+ <prop key =" myName" >yourName</prop >
24+ <prop key =" gammaFactory" >betaFactory</prop >
25+ <prop key =" gamma" >getGamma</prop >
26+ </props >
27+ </property >
28+ </bean >
2729
2830</beans >
You can’t perform that action at this time.
0 commit comments