|
|||||||||
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 org.springframework.beans.factory.support.ReplaceOverride
public class 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.
Field Summary | |
---|---|
private java.lang.String |
methodReplacerBeanName
|
private java.util.List<java.lang.String> |
typeIdentifiers
|
Constructor Summary | |
---|---|
ReplaceOverride(java.lang.String methodName,
java.lang.String methodReplacerBeanName)
Construct a new ReplaceOverride. |
Method Summary | |
---|---|
void |
addTypeIdentifier(java.lang.String identifier)
Add a fragment of a class string, like "Exception" or "java.lang.Exc", to identify a parameter type. |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getMethodReplacerBeanName()
Return the name of the bean implementing MethodReplacer. |
int |
hashCode()
|
boolean |
matches(java.lang.reflect.Method method)
Subclasses must override this to indicate whether they match the given method. |
java.lang.String |
toString()
|
Methods inherited from class org.springframework.beans.factory.support.MethodOverride |
---|
getMethodName, getSource, isOverloaded, setOverloaded, setSource |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.lang.String methodReplacerBeanName
private java.util.List<java.lang.String> typeIdentifiers
Constructor Detail |
---|
public ReplaceOverride(java.lang.String methodName, java.lang.String methodReplacerBeanName)
methodName
- the name of the method to overridemethodReplacerBeanName
- the bean name of the MethodReplacerMethod Detail |
---|
public java.lang.String getMethodReplacerBeanName()
public void addTypeIdentifier(java.lang.String identifier)
identifier
- a substring of the fully qualified class namepublic boolean matches(java.lang.reflect.Method method)
MethodOverride
matches
in class MethodOverride
method
- the method to check
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class MethodOverride
public int hashCode()
hashCode
in class MethodOverride
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |