|
|||||||||||
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
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(java.lang.String methodName,
java.lang.String beanName)
Construct a new LookupOverride. |
Method Summary | |
java.lang.String |
getBeanName()
Return the name of the bean that should be returned by this method. |
boolean |
matches(java.lang.reflect.Method method,
MethodOverrides overrides)
Doesn't allow for overloading, so matching method name is fine. |
java.lang.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 LookupOverride(java.lang.String methodName, java.lang.String beanName)
methodName
- name of the method to override. This
method must have no arguments.beanName
- name of the bean in the current BeanFactory
or ApplicationContext that the overriden method should returnMethod Detail |
public java.lang.String getBeanName()
public boolean matches(java.lang.reflect.Method method, MethodOverrides overrides)
matches
in class MethodOverride
method
- the method to checkoverrides
- owning MethodOverrides object.
This allows us to check whether the method is overloaded.
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |