Skip to content

Commit 1e64eed

Browse files
committed
Reintroducing deprecated addConstructorArg variant
Still used by Spring Security 2.0.x's NamespaceHandler etc.
1 parent b75fa9d commit 1e64eed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,16 @@ public BeanDefinitionBuilder setFactoryMethod(String factoryMethod) {
166166
return this;
167167
}
168168

169+
/**
170+
* Add an indexed constructor arg value. The current index is tracked internally
171+
* and all additions are at the present point.
172+
* @deprecated since Spring 2.5, in favor of {@link #addConstructorArgValue}
173+
*/
174+
@Deprecated
175+
public BeanDefinitionBuilder addConstructorArg(Object value) {
176+
return addConstructorArgValue(value);
177+
}
178+
169179
/**
170180
* Add an indexed constructor arg value. The current index is tracked internally
171181
* and all additions are at the present point.

0 commit comments

Comments
 (0)