Skip to content

Commit

Permalink
Expose primary flag on BeanDefinitionBuilder
Browse files Browse the repository at this point in the history
Closes gh-23794
  • Loading branch information
jhoeller committed Oct 30, 2019
1 parent dc59e50 commit 248ad0f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,15 @@ public BeanDefinitionBuilder addDependsOn(String beanName) {
return this;
}

/**
* Set whether this bean is a primary autowire candidate.
* @since 5.1.11
*/
public BeanDefinitionBuilder setPrimary(boolean primary) {
this.beanDefinition.setPrimary(primary);
return this;
}

/**
* Set the role of this definition.
*/
Expand Down

0 comments on commit 248ad0f

Please sign in to comment.