Skip to content

Commit

Permalink
Introduce accessors for allowCircularReferences/allowRawInjectionDesp…
Browse files Browse the repository at this point in the history
…iteWrapping

Closes spring-projectsgh-27289
  • Loading branch information
jhoeller committed Aug 17, 2021
1 parent 77a562d commit 4495187
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,15 @@ public void setAllowCircularReferences(boolean allowCircularReferences) {
this.allowCircularReferences = allowCircularReferences;
}

/**
* Return whether to allow circular references between beans.
* @since 5.3.10
* @see #setAllowCircularReferences
*/
public boolean isAllowCircularReferences() {
return this.allowCircularReferences;
}

/**
* Set whether to allow the raw injection of a bean instance into some other
* bean's property, despite the injected bean eventually getting wrapped
Expand All @@ -264,6 +273,15 @@ public void setAllowRawInjectionDespiteWrapping(boolean allowRawInjectionDespite
this.allowRawInjectionDespiteWrapping = allowRawInjectionDespiteWrapping;
}

/**
* Return whether to allow the raw injection of a bean instance.
* @since 5.3.10
* @see #setAllowRawInjectionDespiteWrapping
*/
public boolean isAllowRawInjectionDespiteWrapping() {
return this.allowRawInjectionDespiteWrapping;
}

/**
* Ignore the given dependency type for autowiring:
* for example, String. Default is none.
Expand Down

0 comments on commit 4495187

Please sign in to comment.