Explicit documentation on defaulting for 'autowire' and 'lazy-init'
Issue: SPR-13038
This commit is contained in:
@@ -113,16 +113,19 @@
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
The default 'lazy-init' value; see the documentation for the
|
||||
'lazy-init' attribute of the 'bean' element.
|
||||
'lazy-init' attribute of the 'bean' element. The default is "default",
|
||||
indicating inheritance from outer 'beans' sections in case of nesting,
|
||||
otherwise falling back to "false".
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="default-merge" default="default" type="defaultable-boolean">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
The default 'merge' value; see the documentation for the
|
||||
'merge' attribute of the various collection elements. The default
|
||||
is 'false'.
|
||||
The default 'merge' value; see the documentation for the 'merge'
|
||||
attribute of the various collection elements. The default is "default",
|
||||
indicating inheritance from outer 'beans' sections in case of nesting,
|
||||
otherwise falling back to "false".
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
@@ -130,7 +133,9 @@
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
The default 'autowire' value; see the documentation for the
|
||||
'autowire' attribute of the 'bean' element. The default is 'default'.
|
||||
'autowire' attribute of the 'bean' element. The default is "default",
|
||||
indicating inheritance from outer 'beans' sections in case of nesting,
|
||||
otherwise falling back to "no" (i.e. no externally driven autowiring).
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:simpleType>
|
||||
@@ -328,13 +333,15 @@
|
||||
<xsd:attribute name="lazy-init" default="default" type="defaultable-boolean">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
Indicates whether or not this bean is to be lazily initialized.
|
||||
If false, it will be instantiated on startup by bean factories
|
||||
that perform eager initialization of singletons. The default is
|
||||
"false".
|
||||
Indicates whether this bean is to be lazily initialized. If "false",
|
||||
it will be instantiated on startup by bean factories that perform eager
|
||||
initialization of singletons. The effective default is "false".
|
||||
|
||||
Note: This attribute will not be inherited by child bean definitions.
|
||||
Hence, it needs to be specified per concrete bean definition.
|
||||
Hence, it needs to be specified per concrete bean definition. It can be
|
||||
shared through the 'default-lazy-init' attribute at the 'beans' level
|
||||
and potentially inherited from outer 'beans' defaults in case of nested
|
||||
'beans' sections (e.g. with different profiles).
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
@@ -344,7 +351,7 @@
|
||||
Controls whether bean properties are "autowired".
|
||||
This is an automagical process in which bean references don't need
|
||||
to be coded explicitly in the XML bean definition file, but rather the
|
||||
Spring container works out dependencies.
|
||||
Spring container works out dependencies. The effective default is "no".
|
||||
|
||||
There are 4 modes:
|
||||
|
||||
@@ -379,7 +386,10 @@
|
||||
elements, always override autowiring.
|
||||
|
||||
Note: This attribute will not be inherited by child bean definitions.
|
||||
Hence, it needs to be specified per concrete bean definition.
|
||||
Hence, it needs to be specified per concrete bean definition. It can be
|
||||
shared through the 'default-autowire' attribute at the 'beans' level
|
||||
and potentially inherited from outer 'beans' defaults in case of nested
|
||||
'beans' sections (e.g. with different profiles).
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:simpleType>
|
||||
|
||||
Reference in New Issue
Block a user