|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.support.MethodOverride
public abstract class MethodOverride
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.
Constructor Summary | |
---|---|
protected |
MethodOverride(String methodName)
Construct a new override for the given method. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
String |
getMethodName()
Return the name of the method to be overridden. |
Object |
getSource()
Return the configuration source Object for this metadata element
(may be null ). |
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 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). |
void |
setSource(Object source)
Set the configuration source Object for this metadata element. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MethodOverride(String methodName)
methodName
- the name of the method to overrideMethod Detail |
---|
public String getMethodName()
protected void setOverloaded(boolean overloaded)
Default is "true"; can be switched to "false" to optimize runtime performance.
protected boolean isOverloaded()
public void setSource(Object source)
Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
public Object getSource()
BeanMetadataElement
Object
for this metadata element
(may be null
).
getSource
in interface BeanMetadataElement
public abstract boolean matches(Method method)
method
- the method to check
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |