java.lang.Object | |
↳ | org.springframework.beans.factory.support.MethodOverride |
Known Direct Subclasses |
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.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new override for the given method.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the name of the method to be overridden.
| |||||||||||
Return the configuration source
Object for this metadata element
(may be null ). | |||||||||||
Subclasses must override this to indicate whether they match
the given method.
| |||||||||||
Set the configuration source
Object for this metadata element. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return whether the overridden method has to be considered as overloaded
(that is, whether arg type matching has to happen).
| |||||||||||
Set whether the overridden method has to be considered as overloaded
(that is, whether arg type matching has to happen).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.BeanMetadataElement
|
Construct a new override for the given method.
methodName | the name of the method to override |
---|
Return the configuration source Object
for this metadata element
(may be null
).
Subclasses must override this to indicate whether they match the given method. This allows for argument list checking as well as method name checking.
method | the method to check |
---|
Set the configuration source Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
Return whether the overridden method has to be considered as overloaded (that is, whether arg type matching has to happen).
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.