element <lookup-method> (global)
Namespace:
Type:
anonymous complexType (restriction of xsd:anyType)
Content:
empty, 2 attributes
Defined:
globally in spring-beans.xsd; see XML source
Includes:
definitions of 2 attributes
Used:
never
Content Model Diagram
XML Representation Summary
<lookup-method
   
 = 
xsd:string
 = 
xsd:string
/>
Included in content model of elements (2):
bean, bean
Annotation
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.
Anonymous Type Detail
Type Derivation Tree
xsd:anyType (restriction)
  complexType
XML Source (w/o annotations (3); see within schema source)
<xsd:element name="lookup-method">
<xsd:complexType>
<xsd:complexContent>
<xsd:restriction base="xsd:anyType">
<xsd:attribute name="name" type="xsd:string"/>
<xsd:attribute name="bean" type="xsd:string"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
Attribute Detail (all declarations; defined within this component only; 2/2)
bean
Type:
xsd:string, predefined
Use:
optional
The name of the bean in the current or ancestor factories that the lookup method should resolve to. Often this bean will be a prototype, in which case the lookup method will return a distinct instance on every invocation. This is useful for single-threaded objects.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="bean" type="xsd:string"/>

name
Type:
xsd:string, predefined
Use:
optional
The name of the lookup method. This method must take no arguments.
XML Source (w/o annotations (1); see within schema source)
<xsd:attribute name="name" type="xsd:string"/>

XML schema documentation generated with DocFlex/XML RE 1.8.5 using DocFlex/XML XSDDoc 2.5.0 template set. All content model diagrams generated by Altova XMLSpy via DocFlex/XML XMLSpy Integration.