Class MethodOverrides
java.lang.Object
org.springframework.beans.factory.support.MethodOverrides
Set of method overrides, determining which, if any, methods on a
 managed object the Spring IoC container will override at runtime.
 
The currently supported MethodOverride variants are
 LookupOverride and ReplaceOverride.
- Since:
- 1.1
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreate new MethodOverrides.MethodOverrides(MethodOverrides other) Deep copy constructor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddOverride(MethodOverride override) Add the given method override.voidaddOverrides(MethodOverrides other) Copy all given method overrides into this object.booleangetOverride(Method method) Return the override for the given method, if any.Return all method overrides contained by this object.inthashCode()booleanisEmpty()Return whether the set of method overrides is empty.
- 
Constructor Details- 
MethodOverridespublic MethodOverrides()Create new MethodOverrides.
- 
MethodOverridesDeep copy constructor.
 
- 
- 
Method Details- 
addOverridesCopy all given method overrides into this object.
- 
addOverrideAdd the given method override.
- 
getOverridesReturn all method overrides contained by this object.- Returns:
- a Set of MethodOverride objects
- See Also:
 
- 
isEmptypublic boolean isEmpty()Return whether the set of method overrides is empty.
- 
getOverrideReturn the override for the given method, if any.- Parameters:
- method- method to check for overrides for
- Returns:
- the method override, or nullif none
 
- 
equals
- 
hashCodepublic int hashCode()
 
-