element <replaced-method> (global)
Namespace:
Type:
anonymous complexType
Content:
complex, 2 attributes, 1 element
Defined:
globally in spring-beans.xsd; see XML source
Includes:
definitions of 2 attributes, 1 element
Used:
never
Content Model Diagram
XML Representation Summary
<replaced-method
   
 = 
xsd:string
 = 
xsd:string
    >
   
Content: 
arg-type*
</replaced-method>
Content model elements (1):
arg-type
Included in content model of elements (2):
bean, bean
Annotation
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.
XML Source (w/o annotations (3); see within schema source)
<xsd:element name="replaced-method">
<xsd:complexType>
<xsd:sequence>
<xsd:choice maxOccurs="unbounded" minOccurs="0">
<xsd:element ref="arg-type"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string"/>
<xsd:attribute name="replacer" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
Attribute Detail (all declarations; defined within this component only; 2/2)
name
Type:
xsd:string, predefined
Use:
optional
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.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="name" type="xsd:string"/>

replacer
Type:
xsd:string, predefined
Use:
optional
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.
See:  java:org.springframework.beans.factory.support.MethodReplacer
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="replacer" type="xsd:string"/>
Content Element Detail (all declarations; defined within this component only; 1/1)
arg-type
Type:
anonymous complexType, mixed content
XML Source (see within schema source)
<xsd:element ref="arg-type"/>

XML schema documentation generated with DocFlex/XML RE 1.8.5 using DocFlex/XML XSDDoc 2.5.0 template set. All content model diagrams generated by Altova XMLSpy via DocFlex/XML XMLSpy Integration.