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 4
4
<beans default-lazy-init =" true" >
5
5
6
6
<bean name =" beta" class =" org.springframework.beans.factory.FactoryBeanTests$Beta" autowire =" byType" >
7
- <property name =" name" value =" ${myName}" />
7
+ <property name =" name" value =" ${myName}" />
8
8
</bean >
9
9
10
10
<bean id =" alpha" class =" org.springframework.beans.factory.FactoryBeanTests$Alpha" autowire =" byType" />
11
11
12
12
<bean id =" gamma" class =" org.springframework.beans.factory.FactoryBeanTests$Gamma" />
13
13
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 >
17
17
18
- <bean id =" gammaFactory" factory-bean =" betaFactory " factory-method =" getGamma " />
18
+ <bean id =" gammaFactory" factory-bean =" ${gammaFactory} " factory-method =" ${gamma} " />
19
19
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 >
27
29
28
30
</beans >
You can’t perform that action at this time.
0 commit comments