| |||||||
DETAILS: DOCUMENTATION | ELEMENTS | ATTRIBUTES | SOURCE | FRAMES | NO FRAMES |
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.
Attribute Summary | |
xsd:string | bean The name of the bean in the current or ancestor factories that the lookup method should resolve to. |
xsd:string | name The name of the lookup method. |
Attribute Detail |
xsd:string
optional
unqualified
xsd:string
optional
unqualified
<xsd:element name="lookup-method"><xsd:complexType></xsd:element><xsd:complexContent></xsd:complexType><xsd:restriction base="xsd:anyType"></xsd:complexContent><xsd:attribute name="name" type="xsd:string">
</xsd:attribute><xsd:attribute name="bean" type="xsd:string"></xsd:restriction>
</xsd:attribute>
| |||||||
DETAILS: DOCUMENTATION | ELEMENTS | ATTRIBUTES | SOURCE | FRAMES | NO FRAMES |