Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectDefinitionConstants.LookupMethodElement Field

A lookup method causes the IoC container to override a given method and return the object with the name given in the attendant object attribute.

[Visual Basic]
Public Const LookupMethodElement As String = lookup-method
[C#]
public const string LookupMethodElement = lookup-method;

Remarks

This is a form of Method Injection.

It's particularly useful as an alternative to implementing the IObjectFactoryAware interface, in order to be able to make GetObject calls for non-singleton instances at runtime. In this case, Method Injection is a less invasive alternative.

See Also

ObjectDefinitionConstants Class | Spring.Objects.Factory.Xml Namespace