|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.beans.factory.support.MethodOverride
org.springframework.beans.factory.support.ReplaceOverride
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.
| Constructor Summary | |
ReplaceOverride(String methodName,
String methodReplacerBeanName)
|
|
| Method Summary | |
void |
addTypeIdentifier(String s)
Add a fragment of a class string, like "Exception" or "java.lang.Exc", to identify a parameter type |
String |
getMethodReplacerBeanName()
Return the name of the bean implementing MethodReplacer. |
boolean |
matches(Method method,
MethodOverrides overrides)
Subclasses must override this to indicate whether they match the given method. |
String |
toString()
|
| Methods inherited from class org.springframework.beans.factory.support.MethodOverride |
getMethodName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ReplaceOverride(String methodName,
String methodReplacerBeanName)
| Method Detail |
public void addTypeIdentifier(String s)
s - substring of class FQN
public boolean matches(Method method,
MethodOverrides overrides)
MethodOverride
matches in class MethodOverridemethod - the method to checkoverrides - owning MethodOverrides object.
This allows us to check whether the method is overloaded.
public String getMethodReplacerBeanName()
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||