Skip to content

Commit c84ef76

Browse files
committed
[SPR-7953] BeanDefinitionVisitor now actually visits factory method names.
1 parent a6d35d4 commit c84ef76

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

build-spring-framework/resources/changelog.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Changes in version 3.1 M1 (2011-02-11)
1212
* introduced support for environment profiles in bean definition files
1313
* introduced PropertySourcesPlaceholderConfigurer as alternative to PropertyPlaceholderConfigurer
1414
* introduced "c:" namespace for constructor argument shortcuts (analogous to the "p:" namespace)
15-
* introduced @FeatureConfiguration classes with @Feature methods returns FeatureSpecifications
16-
* added TxAnnotationDriven and MvcAnnotationDriven etc as out of the box FeatureSpecifications
15+
* introduced @FeatureConfiguration classes with @Feature methods that return FeatureSpecifications
16+
* added TxAnnotationDriven, MvcAnnotationDriven, etc. as out-of-the-box FeatureSpecifications
1717
* introduced caching abstraction and cache annotation support
1818
* ProxyCreationContext uses "ThreadLocal.remove()" over "ThreadLocal.set(null)" as well
1919
* fixed potential InjectionMetadata NPE when using SpringBeanAutowiringInterceptor
@@ -22,7 +22,7 @@ Changes in version 3.1 M1 (2011-02-11)
2222
* Servlet/PortletRequestDataBinder perform unwrapping for MultipartRequest as well
2323
* ResourceHttpRequestHandler does not set Content-Length header for 304 response
2424
* LocaleChangeInterceptor validates locale values in order to prevent XSS vulnerability
25-
25+
* BeanDefinitionVisitor now actually visits factory method names
2626

2727
Changes in version 3.0.5 (2010-10-20)
2828
-------------------------------------

org.springframework.beans/src/main/java/org/springframework/beans/factory/config/BeanDefinition.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ public interface BeanDefinition extends AttributeAccessor, BeanMetadataElement {
123123
/**
124124
* Specify a factory method, if any. This method will be invoked with
125125
* constructor arguments, or with no arguments if none are specified.
126-
* The method will be invoked on the specifed factory bean, if any,
127-
* or as static method on the local bean class else.
126+
* The method will be invoked on the specified factory bean, if any,
127+
* or otherwise as a static method on the local bean class.
128128
* @param factoryMethodName static factory method name,
129129
* or <code>null</code> if normal constructor creation should be used
130130
* @see #getBeanClassName()

org.springframework.beans/src/main/java/org/springframework/beans/factory/config/BeanDefinitionVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ protected void visitFactoryBeanName(BeanDefinition beanDefinition) {
115115
}
116116

117117
protected void visitFactoryMethodName(BeanDefinition beanDefinition) {
118-
String factoryMethodName = beanDefinition.getFactoryBeanName();
118+
String factoryMethodName = beanDefinition.getFactoryMethodName();
119119
if (factoryMethodName != null) {
120120
String resolvedName = resolveStringValue(factoryMethodName);
121121
if (!factoryMethodName.equals(resolvedName)) {

0 commit comments

Comments
 (0)