Definition Type: Element
Name: ref
Namespace: http://www.springframework.org/schema/beans
Type: anyType:http://www.w3.org/2001/XMLSchema
Containing Schema: spring-beans-3.1.xsd
Abstract
Documentation:
Defines a reference to another bean in this factory or an external factory (parent or included factory).
Collapse XSD Schema Diagram:
Drilldown into parent in schema spring-beans-3_1_xsd Drilldown into local in schema spring-beans-3_1_xsd Drilldown into bean in schema spring-beans-3_1_xsdXSD Diagram of ref in schema spring-beans-3_1_xsd (Membrane Service Proxy)
Collapse XSD Schema Code:
<xsd:element name="ref">
    <xsd:annotation>
        <xsd:documentation><![CDATA[
	Defines a reference to another bean in this factory or an external
	factory (parent or included factory).
			]]></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:attribute name="parent" type="xsd:string">
                    <xsd:annotation>
                        <xsd:documentation><![CDATA[
	The name of the referenced bean in a parent factory.
						]]></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)
parent beans:parent (Optional)
<anyAttribute>