| java.lang.Object org.springframework.beans.factory.support.MethodOverride
All known Subclasses: org.springframework.beans.factory.support.LookupOverride, org.springframework.beans.factory.support.ReplaceOverride,
MethodOverride | abstract public class MethodOverride implements BeanMetadataElement(Code) | | Object representing the override of a method on a managed
object by the IoC container.
Note that the override mechanism is not intended as a
generic means of inserting crosscutting code: use AOP for that.
author: Rod Johnson author: Juergen Hoeller since: 1.1 |
Constructor Summary | |
protected | MethodOverride(String methodName) Construct a new override for the given method. |
Method Summary | |
public boolean | equals(Object other) | public String | getMethodName() Return the name of the method to be overridden. | public Object | getSource() | public int | hashCode() | protected boolean | isOverloaded() Return whether the overridden method has to be considered as overloaded
(that is, whether arg type matching has to happen). | abstract public boolean | matches(Method method) Subclasses must override this to indicate whether they match
the given method. | protected void | setOverloaded(boolean overloaded) Set whether the overridden method has to be considered as overloaded
(that is, whether arg type matching has to happen). | public void | setSource(Object source) Set the configuration source Object for this metadata element. |
MethodOverride | protected MethodOverride(String methodName)(Code) | | Construct a new override for the given method.
Parameters: methodName - the name of the method to override |
getMethodName | public String getMethodName()(Code) | | Return the name of the method to be overridden.
|
hashCode | public int hashCode()(Code) | | |
isOverloaded | protected boolean isOverloaded()(Code) | | Return whether the overridden method has to be considered as overloaded
(that is, whether arg type matching has to happen).
|
matches | abstract public boolean matches(Method method)(Code) | | 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 whether this override matches the given method |
setOverloaded | protected void setOverloaded(boolean overloaded)(Code) | | Set whether the overridden method has to be considered as overloaded
(that is, whether arg type matching has to happen).
Default is "true"; can be switched to "false" to optimize runtime performance.
|
setSource | public void setSource(Object source)(Code) | | Set the configuration source Object for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
|
|
|