Skip to content

Commit 99ae7e3

Browse files
committed
Document web scope annotations in the reference manual
Issue: SPR-13994
1 parent 47d7725 commit 99ae7e3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/asciidoc/core-beans.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2513,13 +2513,13 @@ created from the same `loginAction` bean definition will not see these changes i
25132513
they are particular to an individual request. When the request completes processing, the
25142514
bean that is scoped to the request is discarded.
25152515

2516-
When using Java Config, the `@RequestScope` annotation can be used to assign a component
2517-
to the `request` scope.
2516+
When using annotation-driven components or Java Config, the `@RequestScope` annotation
2517+
can be used to assign a component to the `request` scope.
25182518

25192519
[source,java,indent=0]
25202520
[subs="verbatim,quotes"]
25212521
----
2522-
@RequestScope
2522+
**@RequestScope**
25232523
@Component
25242524
public class LoginAction {
25252525
// ...
@@ -2548,13 +2548,13 @@ changes in state, because they are particular to an individual HTTP `Session`. W
25482548
HTTP `Session` is eventually discarded, the bean that is scoped to that particular HTTP
25492549
`Session` is also discarded.
25502550

2551-
When using Java Config, the `@SessionScope` annotation can be used to assign a component
2552-
to the `session` scope.
2551+
When using annotation-driven components or Java Config, the `@SessionScope` annotation
2552+
can be used to assign a component to the `session` scope.
25532553

25542554
[source,java,indent=0]
25552555
[subs="verbatim,quotes"]
25562556
----
2557-
@SessionScope
2557+
**@SessionScope**
25582558
@Component
25592559
public class UserPreferences {
25602560
// ...
@@ -2604,13 +2604,13 @@ differs in two important ways: It is a singleton per `ServletContext`, not per S
26042604
'ApplicationContext' (for which there may be several in any given web application),
26052605
and it is actually exposed and therefore visible as a `ServletContext` attribute.
26062606

2607-
When using Java Config, the `@ApplicationScope` annotation can be used to assign a
2608-
component to the `application` scope.
2607+
When using annotation-driven components or Java Config, the `@ApplicationScope`
2608+
annotation can be used to assign a component to the `application` scope.
26092609

26102610
[source,java,indent=0]
26112611
[subs="verbatim,quotes"]
26122612
----
2613-
@ApplicationScope
2613+
**@ApplicationScope**
26142614
@Component
26152615
public class AppPreferences {
26162616
// ...

0 commit comments

Comments
 (0)