public class

LookupOverride

extends MethodOverride
java.lang.Object
   ↳ org.springframework.beans.factory.support.MethodOverride
     ↳ org.springframework.beans.factory.support.LookupOverride

Class Overview

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.

Summary

Public Constructors
LookupOverride(String methodName, String beanName)
Construct a new LookupOverride.
Public Methods
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()
[Expand]
Inherited Methods
From class org.springframework.beans.factory.support.MethodOverride
From class java.lang.Object
From interface org.springframework.beans.BeanMetadataElement

Public Constructors

public LookupOverride (String methodName, String beanName)

Also: SpringBeans

Construct a new LookupOverride.

Parameters
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

Public Methods

public boolean equals (Object other)

public String getBeanName ()

Also: SpringBeans

Return the name of the bean that should be returned by this method.

public int hashCode ()

public boolean matches (Method method)

Also: SpringBeans

Match method of the given name, with no parameters.

Parameters
method the method to check
Returns
  • whether this override matches the given method

public String toString ()