Skip to content

Commit

Permalink
Relaxed statement on early validation of bean references
Browse files Browse the repository at this point in the history
Issue: SPR-11495
  • Loading branch information
jhoeller committed Mar 5, 2014
1 parent 2a2816d commit 2cdc066
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/asciidoc/index.adoc
Expand Up @@ -1982,14 +1982,14 @@ The container performs bean dependency resolution as follows:
can convert a value supplied in string format to all built-in types, such as `int`, can convert a value supplied in string format to all built-in types, such as `int`,
`long`, `String`, `boolean`, etc. `long`, `String`, `boolean`, etc.


The Spring container validates the configuration of each bean as the container is The Spring container validates the configuration of each bean as the container is created.
created, including the validation of whether bean reference properties refer to valid However, the bean properties themselves are not set until the bean __is actually created__.
beans. However, the bean properties themselves are not set until the bean __is actually Beans that are singleton-scoped and set to be pre-instantiated (the default) are created
created__. Beans that are singleton-scoped and set to be pre-instantiated (the default) when the container is created. Scopes are defined in <<beans-factory-scopes>>. Otherwise,
are created when the container is created. Scopes are defined in the bean is created only when it is requested. Creation of a bean potentially causes a
<<beans-factory-scopes>>. Otherwise, the bean is created only when it is requested. graph of beans to be created, as the bean's dependencies and its dependencies'
Creation of a bean potentially causes a graph of beans to be created, as the bean's dependencies (and so on) are created and assigned. Note that resolution mismatches among
dependencies and its dependencies' dependencies (and so on) are created and assigned. those dependencies may show up late, i.e. on first creation of the affected bean.


.Circular dependencies .Circular dependencies
**** ****
Expand Down

0 comments on commit 2cdc066

Please sign in to comment.