Skip to content

Document @Lazy and ObjectProvider remedies for circular dependencies#37043

Closed
Jitmanew-Tyagi wants to merge 1 commit into
spring-projects:mainfrom
Jitmanew-Tyagi:docs/circular-dependency-remedies-26703
Closed

Document @Lazy and ObjectProvider remedies for circular dependencies#37043
Jitmanew-Tyagi wants to merge 1 commit into
spring-projects:mainfrom
Jitmanew-Tyagi:docs/circular-dependency-remedies-26703

Conversation

@Jitmanew-Tyagi

Copy link
Copy Markdown

Expand the "Circular dependencies" callout to recommend refactoring away the cycle and to describe keeping constructor injection via @lazy on a constructor parameter or an ObjectProvider/Provider for on-demand lookup, in addition to the existing setter-injection fallback.

See gh-26703

@Jitmanew-Tyagi Jitmanew-Tyagi force-pushed the docs/circular-dependency-remedies-26703 branch from b59a50f to 10e1455 Compare July 13, 2026 16:56
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jul 13, 2026
Expand the "Circular dependencies" callout to recommend refactoring away
the cycle and to describe keeping constructor injection via @lazy on a
constructor parameter or an ObjectProvider/Provider for on-demand lookup,
in addition to the existing setter-injection fallback.

See spring-projectsgh-26703

Signed-off-by: Jitmanew Tyagi <jitmanew@gmail.com>
@Jitmanew-Tyagi Jitmanew-Tyagi force-pushed the docs/circular-dependency-remedies-26703 branch from 10e1455 to f69aa10 Compare July 13, 2026 16:57
@bclozel bclozel added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: duplicate A duplicate of another issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants