Showing:

Annotations
Attributes
Properties
Element lookup-method
Namespace http://www.springframework.org/schema/beans
Annotations
A lookup method causes the IoC container to override the given method
and return the bean with the name given in the bean attribute. This is
a form of Method Injection. It is particularly useful as an alternative
to implementing the BeanFactoryAware interface, in order to be able to
make getBean() calls for non-singleton instances at runtime. In this
case, Method Injection is a less invasive alternative.
Properties
content complex
Attributes
QName Type Use Annotation
bean xsd:string optional
The name of the bean in the current or ancestor factories that
the lookup method should resolve to. Usually this bean will be a
prototype, in which case the lookup method will return a distinct
instance on every invocation. If not specified, the lookup method's
return type will be used for a type-based lookup.
name xsd:string optional
The name of the lookup method. This method may have arguments which
will be passed on to the target constructor or factory method. Note
that 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.
Consider using the @Lookup annotation for more specific demarcation.
Attribute lookup-method / @name
Namespace No namespace
Annotations
The name of the lookup method. This method may have arguments which
will be passed on to the target constructor or factory method. Note
that 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.
Consider using the @Lookup annotation for more specific demarcation.
Type xsd:string
Properties
content simple
Attribute lookup-method / @bean
Namespace No namespace
Annotations
The name of the bean in the current or ancestor factories that
the lookup method should resolve to. Usually this bean will be a
prototype, in which case the lookup method will return a distinct
instance on every invocation. If not specified, the lookup method's
return type will be used for a type-based lookup.
Type xsd:string
Properties
content simple