Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

LookupMethodOverride Constructor

Creates a new instance of the LookupMethodOverride class.

[Visual Basic]
Public Sub New( _
   ByVal methodName As String, _
   ByVal objectName As String _
)
[C#]
LookupMethodOverride(
   string methodName,
   string objectName
);

Parameters

methodName
The name of the method that is to be overridden.
objectName
The name of the object in the current IoC context that the dependency injected method must return.

Remarks

Methods eligible for lookup override must not have arguments.

Exceptions

Exception Type Condition
ArgumentNullException If either of the supplied arguments is a null reference (Nothing in Visual Basic) or contains only whitespace character(s).

See Also

LookupMethodOverride Class | Spring.Objects.Factory.Support Namespace