Methods eligible for lookup override may declare arguments in which case the given arguments are passed to the bean retrieval operation.
org.springframework.beans.factory.BeanFactory#getBean(String) , org.springframework.beans.factory.BeanFactory#getBean(Class) , org.springframework.beans.factory.BeanFactory#getBean(String, Object...) , org.springframework.beans.factory.BeanFactory#getBean(Class, Object...) , org.springframework.beans.factory.BeanFactory#getBeanProvider(ResolvableType)
| Access | Constructor and Description |
|---|---|
| public | LookupOverride(String
the name of the method to override methodName, String the name of the bean in the current beanName)BeanFactory that the
overridden method should return (may be null for type-based bean retrieval)Construct a new LookupOverride. |
| public | LookupOverride(Method
the method declaration to override method, String the name of the bean in the current beanName)BeanFactory that the
overridden method should return (may be null for type-based bean retrieval)Construct a new LookupOverride. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides org. Indicates whether some other object is "equal to" this one. |
| public String | |
| public int | hashCode()
Overrides org. Returns a hash code value for this object. |
| public boolean | matches(Method
the method to check method)Implements abstract org. Match the specified method by |
| public String |
| beanName | back to summary |
|---|---|
| private final String beanName
| |
| method | back to summary |
|---|---|
| private Method method
| |
| LookupOverride | back to summary |
|---|---|
| public LookupOverride(String methodName, String beanName) Construct a new LookupOverride. | |
| LookupOverride | back to summary |
|---|---|
| public LookupOverride(Method method, String beanName) Construct a new LookupOverride. | |
| 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. | |
| getBeanName | back to summary |
|---|---|
| public String getBeanName() Return the name of the bean that should be returned by this method.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for this 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. Match the specified method by For backwards compatibility reasons, in a scenario with overloaded non-abstract methods of the given name, only the no-arg variant of a method will be turned into a container-driven lookup method. In case of a provided
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |