Definition Type: Element
Name: idref
Namespace: http://www.springframework.org/schema/beans
Type: anyType:http://www.w3.org/2001/XMLSchema
Containing Schema: spring-beans-3.1.xsd
Abstract
Documentation:
The id of another bean in this factory or an external factory (parent or included factory). While a regular 'value' element could instead be used for the same effect, using idref indicates that the Spring container should check that the value actually corresponds to a bean id.
Collapse XSD Schema Diagram:
Drilldown into local in schema spring-beans-3_1_xsd Drilldown into bean in schema spring-beans-3_1_xsdXSD Diagram of idref in schema spring-beans-3_1_xsd (Membrane Service Proxy)
Collapse XSD Schema Code:
<xsd:element name="idref">
    <xsd:annotation>
        <xsd:documentation><![CDATA[
	The id of another bean in this factory or an external factory
	(parent or included factory).
	While a regular 'value' element could instead be used for the
	same effect, using idref indicates that the Spring container
	should check that the value actually corresponds to a bean id.
			]]></xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:complexContent>
            <xsd:restriction base="xsd:anyType">
                <xsd:attribute name="bean" type="xsd:string">
                    <xsd:annotation>
                        <xsd:documentation><![CDATA[
	The name of the referenced bean.
							]]></xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
                <xsd:attribute name="local" type="xsd:string">
                    <xsd:annotation>
                        <xsd:documentation><![CDATA[
	The name of the referenced bean. The value must be a bean ID and will be
	checked by the Spring container. This is therefore the preferred technique
	for referencing beans within the same bean factory XML file.
							]]></xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
            </xsd:restriction>
        </xsd:complexContent>
    </xsd:complexType>
</xsd:element>
Collapse Child Attributes:
Name Type Default Value Use
bean beans:bean (Optional)
local beans:local (Optional)
<anyAttribute>