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 f16aa4a commit 03bd02a
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,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 03bd02a

Please sign in to comment.