We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f16aa4a commit 03bd02aCopy full SHA for 03bd02a
spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java
@@ -302,6 +302,15 @@ public BeanDefinitionBuilder addDependsOn(String beanName) {
302
return this;
303
}
304
305
+ /**
306
+ * Set whether this bean is a primary autowire candidate.
307
+ * @since 5.1.11
308
+ */
309
+ public BeanDefinitionBuilder setPrimary(boolean primary) {
310
+ this.beanDefinition.setPrimary(primary);
311
+ return this;
312
+ }
313
+
314
/**
315
* Set the role of this definition.
316
*/
0 commit comments