Definition Type: Element
Name: replaced-method
Namespace: http://www.springframework.org/schema/beans
Containing Schema: spring-beans-3.1.xsd
Abstract
Documentation:
Similar to the lookup method mechanism, the replaced-method element is used to control IoC container method overriding: Method Injection. This mechanism allows the overriding of a method with arbitrary code.
Collapse XSD Schema Diagram:
Drilldown into arg-type in schema spring-beans-3_1_xsd Drilldown into replacer in schema spring-beans-3_1_xsd Drilldown into name in schema spring-beans-3_1_xsdXSD Diagram of replaced-method in schema spring-beans-3_1_xsd (Membrane Service Proxy)
Collapse XSD Schema Code:
<xsd:element name="replaced-method">
    <xsd:annotation>
        <xsd:documentation><![CDATA[
	Similar to the lookup method mechanism, the replaced-method element
	is used to control IoC container method overriding: Method Injection.
	This mechanism allows the overriding of a method with arbitrary code.
			]]></xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:sequence>
            <xsd:choice minOccurs="0" maxOccurs="unbounded">
                <xsd:element ref="arg-type" />
            </xsd:choice>
        </xsd:sequence>
        <xsd:attribute name="name" type="xsd:string">
            <xsd:annotation>
                <xsd:documentation><![CDATA[
	The name of the method whose implementation must be replaced by the
	IoC container. If this method is not overloaded, there is no need
	to use arg-type subelements. If this method is overloaded, arg-type
	subelements must be used for all override definitions for the method.
					]]></xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute name="replacer" type="xsd:string">
            <xsd:annotation>
                <xsd:documentation source="java:org.springframework.beans.factory.support.MethodReplacer"><![CDATA[
	Bean name of an implementation of the MethodReplacer interface in the
	current or ancestor factories. This may be a singleton or prototype
	bean. If it is a prototype, a new instance will be used for each
	method replacement. Singleton usage is the norm.
					]]></xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
    </xsd:complexType>
</xsd:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
arg-type beans:arg-type (1) (1)
Collapse Child Attributes:
Name Type Default Value Use
name beans:name (Optional)
replacer beans:replacer (Optional)