Class ReplaceOverride
java.lang.Object
org.springframework.beans.factory.support.MethodOverride
org.springframework.beans.factory.support.ReplaceOverride
- All Implemented Interfaces:
- BeanMetadataElement
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.
- Since:
- 1.1
- Author:
- Rod Johnson, Juergen Hoeller
- 
Constructor SummaryConstructorsConstructorDescriptionReplaceOverride(String methodName, String methodReplacerBeanName) Construct a new ReplaceOverride.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddTypeIdentifier(String identifier) Add a fragment of a class string, like "Exception" or "java.lang.Exc", to identify a parameter type.booleanReturn the name of the bean implementing MethodReplacer.inthashCode()booleanSubclasses must override this to indicate whether they match the given method.toString()Methods inherited from class org.springframework.beans.factory.support.MethodOverridegetMethodName, getSource, isOverloaded, setOverloaded, setSource
- 
Constructor Details- 
ReplaceOverrideConstruct a new ReplaceOverride.- Parameters:
- methodName- the name of the method to override
- methodReplacerBeanName- the bean name of the- MethodReplacer
 
 
- 
- 
Method Details- 
getMethodReplacerBeanNameReturn the name of the bean implementing MethodReplacer.
- 
addTypeIdentifierAdd 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
 
- 
matchesDescription copied from class:MethodOverrideSubclasses must override this to indicate whether they match the given method. This allows for argument list checking as well as method name checking.- Specified by:
- matchesin class- MethodOverride
- Parameters:
- method- the method to check
- Returns:
- whether this override matches the given method
 
- 
equals- Overrides:
- equalsin class- MethodOverride
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- MethodOverride
 
- 
toString
 
-