| |||||||
| 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 | abstractIs 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 | autowireControls whether bean properties are "autowired". |
defaultable-boolean | autowire-candidateIndicates whether or not this bean should be considered when looking for matching candidates to satisfy another bean's autowiring requirements. |
xsd:string | classThe fully qualified name of the bean's class, except if it serves only as a parent definition for child bean definitions. |
xsd:string | depends-onThe names of the beans that this bean depends on being initialized. |
xsd:string | destroy-methodThe name of the custom destroy method to invoke on bean factory shutdown. |
xsd:string | factory-beanAlternative to class attribute for factory-method usage. |
xsd:string | factory-methodThe name of a factory method to use to create this object. |
xsd:ID | idThe unique identifier for a bean. |
xsd:string | init-methodThe name of the custom initialization method to invoke after setting bean properties. |
defaultable-boolean | lazy-initIndicates whether or not this bean is to be lazily initialized. |
xsd:string | nameCan be used to create one or more aliases illegal in an (XML) id. |
xsd:string | parentThe name of the parent bean definition. |
xsd:boolean | primarySpecifies that this bean should be given preference when multiple candidates are qualified to autowire a single-valued dependency. |
xsd:string | scopeThe 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:booleanoptionalunqualifieddefaultoptionalunqualifieddefaultable-booleandefaultoptionalunqualifiedxsd:stringoptionalunqualifiedxsd:stringoptionalunqualifiedxsd:stringoptionalunqualifiedxsd:stringoptionalunqualifiedxsd:stringoptionalunqualifiedxsd:IDoptionalunqualifiedxsd:stringoptionalunqualifieddefaultable-booleandefaultoptionalunqualifiedxsd:stringoptionalunqualifiedxsd:stringoptionalunqualifiedxsd:booleanoptionalunqualifiedxsd:stringoptionalunqualified<xsd:element name="bean"><xsd:complexType></xsd:element>
</xsd:complexType>
| |||||||
| DETAILS: DOCUMENTATION | ELEMENTS | ATTRIBUTES | SOURCE | FRAMES | NO FRAMES | ||||||