Skip to content

Commit

Permalink
+ Updates for PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Scott M Stark <starksm64@gmail.com>
  • Loading branch information
starksm64 committed Nov 30, 2023
1 parent 204f03f commit e24bb0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion spec/src/main/asciidoc/core/implementation.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Portable extensions and build compatible extensions may provide other kinds of b

A _managed bean_ is a bean that is implemented by a Java class.
This class is called the _bean class_ of the managed bean.
The basic lifecycle and semantics of managed beans are defined by the CDI specification.

If a managed bean has a non-static public field, its scope must be a <<normal_scope,pseudo-scope>> (for example, `@Dependent` or `@Singleton`).
If a managed bean with a non-static public field declares a normal scope, the container automatically detects the problem and treats it as a definition error.
Expand Down
4 changes: 2 additions & 2 deletions spec/src/main/asciidoc/core/lifecycle.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ The actual mechanics of bean creation and destruction varies according to what k

==== Lifecycle of managed beans

When the `create()` method of the `Bean` object that represents a managed bean is called, the container obtains an instance of the bean, as defined by this specification, calling the bean constructor as defined by <<instantiation>>, and performing dependency injection as defined in <<fields_initializer_methods>>.
When the `create()` method of the `Bean` object that represents a managed bean is called, the container obtains an instance of the bean, calling the bean constructor as defined by <<instantiation>>, and performing dependency injection as defined in <<fields_initializer_methods>>.

When the `destroy()` method is called, the container destroys the instance, as defined by this specification, and any dependent objects, as defined in <<dependent_objects_destruction>>.
When the `destroy()` method is called, the container destroys the instance, and any dependent objects, as defined in <<dependent_objects_destruction>>.



Expand Down

0 comments on commit e24bb0e

Please sign in to comment.