Skip to content

Commit 546ca9b

Browse files
committed
Polishing
1 parent 09b476a commit 546ca9b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: framework-docs/modules/ROOT/pages/core/aot.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,12 @@ In case you are working on a code base that you cannot modify, you can set the {
332332
Spring AOT detects what needs to be done to create a bean and translates that in generated code using an instance supplier.
333333
The container also supports creating a bean with {spring-framework-api}++/beans/factory/BeanFactory.html#getBean(java.lang.String,java.lang.Object...)++[custom arguments] that leads to several issues with AOT:
334334

335-
. The custom arguments require a dynamic introspection of a matching constructor or factory method.
336-
Those arguments can't be detected by AOT so the necessary reflection hints will have to be provided manually.
337-
. By-passing the instance supplier means that all the other optimizations after creation are skipped as well.
335+
. The custom arguments require dynamic introspection of a matching constructor or factory method.
336+
Those arguments cannot be detected by AOT, so the necessary reflection hints will have to be provided manually.
337+
. By-passing the instance supplier means that all other optimizations after creation are skipped as well.
338338
For instance, autowiring on fields and methods will be skipped as they are handled in the instance supplier.
339339

340-
Rather than having prototype-scoped beans created with custom arguments, we recommend a manual factory pattern where a bean is responsible of the creation of the instance.
340+
Rather than having prototype-scoped beans created with custom arguments, we recommend a manual factory pattern where a bean is responsible for the creation of the instance.
341341

342342
[[aot.bestpractices.factory-bean]]
343343
=== FactoryBean

Diff for: framework-docs/modules/ROOT/pages/integration/rest-clients.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ This can be done with `method(HttpMethod)` or with the convenience methods `get(
7171
Next, the request URI can be specified with the `uri` methods.
7272
This step is optional and can be skipped if the `RestClient` is configured with a default URI.
7373
The URL is typically specified as a `String`, with optional URI template variables.
74-
The following example configures a GET request to `"https://example.com/orders/42`:
74+
The following example configures a GET request to `https://example.com/orders/42`:
7575

7676
[tabs]
7777
======

0 commit comments

Comments
 (0)