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.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | ReplaceOverride(String
the name of the method to override methodName, String the bean name of the methodReplacerBeanName)MethodReplacerConstruct a new ReplaceOverride. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addTypeIdentifier(String
a substring of the fully qualified class name identifier)Add a fragment of a class string, like "Exception" or "java.lang.Exc", to identify a parameter type. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides org. |
| public String | |
| public int | hashCode()
Overrides org. |
| public boolean | matches(Method
the method to check method)Implements abstract org. |
| public String |
| methodReplacerBeanName | back to summary |
|---|---|
| private final String methodReplacerBeanName | |
| typeIdentifiers | back to summary |
|---|---|
| private final List<String> typeIdentifiers | |
| ReplaceOverride | back to summary |
|---|---|
| public ReplaceOverride(String methodName, String methodReplacerBeanName) Construct a new ReplaceOverride.
| |
| addTypeIdentifier | back to summary |
|---|---|
| public void addTypeIdentifier(String identifier) Add a fragment of a class string, like "Exception" or "java.lang.Exc", to identify a parameter type.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getMethodReplacerBeanName | back to summary |
|---|---|
| public String getMethodReplacerBeanName() Return the name of the bean implementing MethodReplacer. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| matches | back to summary |
|---|---|
| public boolean matches(Method method) Implements abstract org. Doc from org. Subclasses must override this to indicate whether they match the given method. This allows for argument list checking as well as method name checking. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |