public class

ReplaceOverride

extends MethodOverride
java.lang.Object
   ↳ org.springframework.beans.factory.support.MethodOverride
     ↳ org.springframework.beans.factory.support.ReplaceOverride

Class Overview

Extension of MethodOverride that represents an arbitrary override of a method by the IoC container.

Any non-final method can be overridden, irrespective of its parameters and return types.

Summary

Public Constructors
ReplaceOverride(String methodName, String methodReplacerBeanName)
Construct a new ReplaceOverride.
Public Methods
void addTypeIdentifier(String identifier)
Add a fragment of a class string, like "Exception" or "java.lang.Exc", to identify a parameter type.
boolean equals(Object other)
String getMethodReplacerBeanName()
Return the name of the bean implementing MethodReplacer.
int hashCode()
boolean matches(Method method)
Subclasses must override this to indicate whether they match the given method.
String toString()
[Expand]
Inherited Methods
From class org.springframework.beans.factory.support.MethodOverride
From class java.lang.Object
From interface org.springframework.beans.BeanMetadataElement

Public Constructors

public ReplaceOverride (String methodName, String methodReplacerBeanName)

Also: SpringBeans

Construct a new ReplaceOverride.

Parameters
methodName the name of the method to override
methodReplacerBeanName the bean name of the MethodReplacer

Public Methods

public void addTypeIdentifier (String identifier)

Also: SpringBeans

Add a fragment of a class string, like "Exception" or "java.lang.Exc", to identify a parameter type.

Parameters
identifier a substring of the fully qualified class name

public boolean equals (Object other)

public String getMethodReplacerBeanName ()

Also: SpringBeans

Return the name of the bean implementing MethodReplacer.

public int hashCode ()

public boolean matches (Method method)

Also: SpringBeans

Subclasses must override this to indicate whether they match the given method. This allows for argument list checking as well as method name checking.

Parameters
method the method to check
Returns
  • whether this override matches the given method

public String toString ()