| 
 | ||||||||||
| 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.LookupOverride
public class LookupOverride
Represents an override of a method that looks up an object in the same IoC context.
Methods eligible for lookup override must not have arguments.
| Constructor Summary | |
|---|---|
| LookupOverride(String methodName,
               String beanName)Construct a new LookupOverride. | |
| Method Summary | |
|---|---|
|  boolean | equals(Object other) | 
|  String | getBeanName()Return the name of the bean that should be returned by this method. | 
|  int | hashCode() | 
|  boolean | matches(Method method)Match method of the given name, with no parameters. | 
|  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 | 
| Constructor Detail | 
|---|
public LookupOverride(String methodName,
                      String beanName)
methodName - the name of the method to override.
 This method must have no arguments.beanName - name of the bean in the current BeanFactory
 that the overriden method should return| Method Detail | 
|---|
public String getBeanName()
public boolean matches(Method method)
matches in class MethodOverridemethod - the method to check
public String toString()
toString in class Objectpublic boolean equals(Object other)
equals in class MethodOverridepublic int hashCode()
hashCode in class MethodOverride| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||