Skip to content

Remove use of @Lazy #11631

@steven-sheehy

Description

@steven-sheehy

Problem

Spring's @Lazy annotation does not work with bootBuildImage or with GraalVM native image.

Solution

  • Remove use of @Lazy everywhere
  • Use ObjectProvider wrapper around JdbcOperations, repositories, etc used in lazy beans to provide programmatic creation and retrieval of troublesome dependencies
  • Add protected final NamedParameterJdbcOperations getJdbcOperations() to AsyncJavaMigration that hides use of ObjectProvider

Alternatives

No response

Metadata

Metadata

Projects

Status

👷 In progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions