@@ -3039,7 +3039,7 @@ constructor or setter argument or autowired field) as `ObjectFactory<MyTargetBea
3039
3039
allowing for a `getObject()` call to retrieve the current instance on demand every
3040
3040
time it is needed -- without holding on to the instance or storing it separately.
3041
3041
3042
- As an extended variant, you may declare `ObjectProvider<MyTargetBean>`, which delivers
3042
+ As an extended variant, you may declare `ObjectProvider<MyTargetBean>` which delivers
3043
3043
several additional access variants, including `getIfAvailable` and `getIfUnique`.
3044
3044
3045
3045
The JSR-330 variant of this is called `Provider` and is used with a `Provider<MyTargetBean>`
@@ -6675,9 +6675,11 @@ factory method and other bean definition properties, such as a qualifier value t
6675
6675
the `@Qualifier` annotation. Other method-level annotations that can be specified are
6676
6676
`@Scope`, `@Lazy`, and custom qualifier annotations.
6677
6677
6678
- TIP: In addition to its role for component initialization, you can also place the `@Lazy` annotation
6679
- on injection points marked with `@Autowired` or `@Inject`. In this context, it
6680
- leads to the injection of a lazy-resolution proxy.
6678
+ TIP: In addition to its role for component initialization, you can also place the `@Lazy`
6679
+ annotation on injection points marked with `@Autowired` or `@Inject`. In this context,
6680
+ it leads to the injection of a lazy-resolution proxy. However, such a proxy approach
6681
+ is rather limited. For sophisticated lazy interactions, in particular in combination
6682
+ with optional dependencies, we recommend `ObjectProvider<MyTargetBean>` instead.
6681
6683
6682
6684
Autowired fields and methods are supported, as previously discussed, with additional
6683
6685
support for autowiring of `@Bean` methods. The following example shows how to do so:
0 commit comments