| |||||||
DETAILS: DOCUMENTATION | ELEMENTS | ATTRIBUTES | SOURCE | FRAMES | NO FRAMES |
Defines a single (usually named) bean. A bean definition may contain nested tags for constructor arguments, property values, lookup methods, and replaced methods. Mixing constructor injection and setter injection on the same bean is explicitly supported.
Nested Element Summary | |
| constructor-arg |
| description |
| lookup-method |
| meta |
| property |
| qualifier |
| replaced-method |
Attribute Summary | |
xsd:boolean | abstract Is this bean "abstract", that is, not meant to be instantiated itself but rather just serving as parent for concrete child bean definitions? The default is "false". |
xsd:NMTOKEN | autowire Controls whether bean properties are "autowired". |
defaultable-boolean | autowire-candidate Indicates whether or not this bean should be considered when looking for matching candidates to satisfy another bean's autowiring requirements. |
xsd:string | class The fully qualified name of the bean's class, except if it serves only as a parent definition for child bean definitions. |
xsd:string | depends-on The names of the beans that this bean depends on being initialized. |
xsd:string | destroy-method The name of the custom destroy method to invoke on bean factory shutdown. |
xsd:string | factory-bean Alternative to class attribute for factory-method usage. |
xsd:string | factory-method The name of a factory method to use to create this object. |
xsd:ID | id The unique identifier for a bean. |
xsd:string | init-method The name of the custom initialization method to invoke after setting bean properties. |
defaultable-boolean | lazy-init Indicates whether or not this bean is to be lazily initialized. |
xsd:string | name Can be used to create one or more aliases illegal in an (XML) id. |
xsd:string | parent The name of the parent bean definition. |
xsd:boolean | primary Specifies that this bean should be given preference when multiple candidates are qualified to autowire a single-valued dependency. |
xsd:string | scope The scope of this bean: typically "singleton" (one shared instance, which will be returned by all calls to getBean with the given id), or "prototype" (independent instance resulting from each call to getBean). |
Attribute Detail |
xsd:boolean
optional
unqualified
default
optional
unqualified
defaultable-boolean
default
optional
unqualified
xsd:string
optional
unqualified
xsd:string
optional
unqualified
xsd:string
optional
unqualified
xsd:string
optional
unqualified
xsd:string
optional
unqualified
xsd:ID
optional
unqualified
xsd:string
optional
unqualified
defaultable-boolean
default
optional
unqualified
xsd:string
optional
unqualified
xsd:string
optional
unqualified
xsd:boolean
optional
unqualified
xsd:string
optional
unqualified
<xsd:element name="bean"><xsd:complexType></xsd:element>
</xsd:complexType>
| |||||||
DETAILS: DOCUMENTATION | ELEMENTS | ATTRIBUTES | SOURCE | FRAMES | NO FRAMES |