element <beans> (global)
Namespace:
Type:
anonymous complexType
Content:
complex, 7 attributes, attr. wildcard, 5 elements, elem. wildcard
Defined:
Includes:
definitions of 7 attributes, attr. wildcard, 5 elements, elem. wildcard
Used:
Content Model Diagram
XML Representation Summary
<beans
   
 = 
xsd:string
 = 
("default" | "true" | "false") : "default"
 = 
("default" | "true" | "false") : "default"
 = 
("default" | "no" | "byName" | "byType" | "constructor") : "default"
 = 
xsd:string
 = 
xsd:string
 = 
xsd:string
    {any attribute with non-schema namespace}
    >
   
Content: 
description?, (import | alias | bean | {any}*)*, beans*
</beans>
Content model elements (5):
alias, bean, beans, description, import
Included in content model of elements (3):
beans, beans, mule
Known Usage Locations
Annotation
Container for <bean> and other elements, typically the root element in the document. Allows the definition of default values for all nested bean definitions. May itself be nested for the purpose of defining a subset of beans with certain default values or to be registered only when certain profile(s) are active. Any such nested <beans> element must be declared as the last element in the document.
XML Source (w/o annotations (8); see within schema source)
<xsd:element name="beans">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" ref="description"/>
<xsd:choice maxOccurs="unbounded" minOccurs="0">
<xsd:element ref="import"/>
<xsd:element ref="alias"/>
<xsd:element ref="bean"/>
<xsd:any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="strict"/>
</xsd:choice>
<xsd:element maxOccurs="unbounded" minOccurs="0" ref="beans"/>
</xsd:sequence>
<xsd:attribute name="profile" type="xsd:string" use="optional"/>
<xsd:attribute default="default" name="default-lazy-init" type="defaultable-boolean"/>
<xsd:attribute default="default" name="default-merge" type="defaultable-boolean"/>
<xsd:attribute default="default" name="default-autowire">
<xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="default"/>
<xsd:enumeration value="no"/>
<xsd:enumeration value="byName"/>
<xsd:enumeration value="byType"/>
<xsd:enumeration value="constructor"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="default-autowire-candidates" type="xsd:string"/>
<xsd:attribute name="default-init-method" type="xsd:string"/>
<xsd:attribute name="default-destroy-method" type="xsd:string"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:complexType>
</xsd:element>
Attribute Detail (all declarations; defined within this component only; 8/8)
default-autowire
Type:
anonymous simpleType (restriction of xsd:NMTOKEN)
Use:
optional
The default 'autowire' value; see the documentation for the 'autowire' attribute of the 'bean' element. The default is 'default'.
Attribute Value
enumeration of xsd:NMTOKEN
Enumeration:
"default", "no", "byName", "byType", "constructor"
Default:
"default"
Anonymous simpleType
Type Derivation Tree
xsd:NMTOKEN (restriction)
  simpleType
Derivation:
restriction of xsd:NMTOKEN
Facets:
enumeration:
"default", "no", "byName", "byType", "constructor"
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute default="default" name="default-autowire">
<xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="default"/>
<xsd:enumeration value="no"/>
<xsd:enumeration value="byName"/>
<xsd:enumeration value="byType"/>
<xsd:enumeration value="constructor"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>

default-autowire-candidates
Type:
xsd:string, predefined
Use:
optional
A default bean name pattern for identifying autowire candidates: e.g. "*Service", "data*", "*Service*", "data*Service". Also accepts a comma-separated list of patterns: e.g. "*Service,*Dao". See the documentation for the 'autowire-candidate' attribute of the 'bean' element for the semantic details of autowire candidate beans.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="default-autowire-candidates" type="xsd:string"/>

default-destroy-method
Type:
xsd:string, predefined
Use:
optional
The default 'destroy-method' value; see the documentation for the 'destroy-method' attribute of the 'bean' element.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="default-destroy-method" type="xsd:string"/>

default-init-method
Type:
xsd:string, predefined
Use:
optional
The default 'init-method' value; see the documentation for the 'init-method' attribute of the 'bean' element.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="default-init-method" type="xsd:string"/>

default-lazy-init
Type:
Use:
optional
The default 'lazy-init' value; see the documentation for the 'lazy-init' attribute of the 'bean' element.
Attribute Value
enumeration of xsd:NMTOKEN
Enumeration:
"default", "true", "false"
Default:
"default"
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute default="default" name="default-lazy-init" type="defaultable-boolean"/>

default-merge
Type:
Use:
optional
The default 'merge' value; see the documentation for the 'merge' attribute of the various collection elements. The default is 'false'.
Attribute Value
enumeration of xsd:NMTOKEN
Enumeration:
"default", "true", "false"
Default:
"default"
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute default="default" name="default-merge" type="defaultable-boolean"/>

profile
Type:
xsd:string, predefined
Use:
optional
The set of profiles for which this <beans> element may be parsed. Multiple profiles can be separated by any number of spaces, commas, or semi-colons (or indeed any mixture of the three). If one or more of the specified profiles are active at time of parsing, the <beans> element will be parsed, and all of its <bean> elements registered, &lt;import&gt; elements followed, etc. If none of the specified profiles are active at time of parsing, then the entire element and its contents will be ignored. Profiles are activated in one of two ways: Programmatic: ConfigurableEnvironment#setActiveProfiles(String...) ConfigurableEnvironment#setDefaultProfiles(String...) Properties (typically through -D system properties, environment variables, or servlet context init params): spring.profiles.active=p1,p2 spring.profiles.default=p1,p2
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="profile" type="xsd:string" use="optional"/>

{any attribute with non-schema namespace}
XML Source (see within schema source)
<xsd:anyAttribute namespace="##other" processContents="lax"/>
Content Element Detail (all declarations; defined within this component only; 6/6)
alias
Type:
anonymous complexType (restriction of xsd:anyType), empty content
XML Source (see within schema source)
<xsd:element ref="alias"/>

bean
Type:
anonymous complexType (extension of identifiedType), complex content
XML Source (see within schema source)
<xsd:element ref="bean"/>

beans
Type:
anonymous complexType, complex content
XML Source (see within schema source)
<xsd:element maxOccurs="unbounded" minOccurs="0" ref="beans"/>

description
Type:
anonymous complexType, mixed content
XML Source (see within schema source)
<xsd:element minOccurs="0" ref="description"/>

import
Type:
anonymous complexType (restriction of xsd:anyType), empty content
XML Source (see within schema source)
<xsd:element ref="import"/>

{any element with non-schema namespace}
XML Source (see within schema source)
<xsd:any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="strict"/>

XML schema documentation generated with DocFlex/XML RE 1.8.5 using DocFlex/XML XSDDoc 2.5.0 template set. All content model diagrams generated by Altova XMLSpy via DocFlex/XML XMLSpy Integration.