Skip to content

Commit ab69fe4

Browse files
manovotnLadicek
authored andcommitted
Address remaining TODOs for passivation mentions.
1 parent 269ef0d commit ab69fe4

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

spec/src/main/asciidoc/core/events.asciidoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,6 @@ The container must provide a built-in bean with:
193193

194194
If an injection point of raw type `Event` is defined, the container automatically detects the problem and treats it as a definition error.
195195

196-
The built-in implementation must be a passivation capable dependency, as defined in <<passivation_capable_dependency>>.
197-
// TODO move passivation to Full?
198-
199196
[[observer_resolution]]
200197

201198
=== Observer resolution

spec/src/main/asciidoc/core/events_full.asciidoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
== Events in {cdi_full}
44

5+
[[firing_events_full]]
6+
7+
=== Firing events in {cdi_full}
8+
9+
[[builtin_event_full]]
10+
11+
==== The built-in `Event` in {cdi_full}
12+
13+
In addition to rules defined in <<builtin_event>>, the following rule applies.
14+
15+
The built-in implementation must be a passivation capable dependency, as defined in <<passivation_capable_dependency>>.
16+
17+
518
[[observer_methods_full]]
619

720
=== Observer methods in {cdi_full}

spec/src/main/asciidoc/core/scopescontexts.asciidoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ Extensions providing context implementations for normal scopes should implement
123123

124124
If the context object is inactive, the `get()` and `destroy()` methods must throw a `ContextNotActiveException`.
125125

126-
When the container calls `get()` or `destroy()` for a context that is associated with a passivating scope it must ensure that the given instance of `Contextual` and the instance of `CreationalContext`, if given, are serializable.
127-
// TODO move passivation to Full?
128-
129126
The context object is responsible for destroying any contextual instance it creates by passing the instance to the `destroy()` method of the `Contextual` object representing the contextual type. A destroyed instance must not subsequently be returned by the `get()` method.
130127

131128
The context object must pass the same instance of `CreationalContext` to `Contextual.destroy()` that it passed to `Contextual.create()` when it created the instance.

spec/src/main/asciidoc/core/scopescontexts_full.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
== Scopes and contexts in {cdi_full}
44

5+
[[context_full]]
6+
7+
=== The `Context` interface in {cdi_full}
8+
9+
In addition to rules defined in <<context>>, the following rule applies.
10+
11+
When the container calls `get()` or `destroy()` for a context that is associated with a passivating scope it must ensure that the given instance of `Contextual` and the instance of `CreationalContext`, if given, are serializable.
12+
513
[[dependent_context_full]]
614

715
=== Dependent pseudo-scope in {cdi_full}

0 commit comments

Comments
 (0)