element <replaced-method> (global)
Namespace: |
|
Type: |
|
Content: |
|
Defined: |
|
Includes: |
|
Used: |
|
Content Model Diagram
XML Representation Summary |
<replaced-method |
|
|
= |
xsd:string |
|
= |
xsd:string |
|
|
> |
|
|
</replaced-method> |
Content model elements (1):
-
Included in content model of elements (2):
-
Known Usage Locations
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: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) -
XML Source (see within schema source)