Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

StaticListableObjectFactory.GetObject(String, Type) Method

Return an instance of the given object name.

[Visual Basic]
Public NotOverridable Overloads Sub GetObject( _
   ByVal name As String, _
   ByVal requiredType As Type _
) _
    Implements IObjectFactory.GetObject
[C#]
public object GetObject(
   string name,
   Type requiredType
);

Parameters

name
The name of the object to return.
requiredType
Type the object may match. Can be an interface or superclass of the actual class. For example, if the value is the Object class, this method will succeed whatever the class of the returned instance.

Return Value

The instance of the object.

Implements

IObjectFactory.GetObject

See Also

StaticListableObjectFactory Class | Spring.Objects.Factory.Support Namespace | StaticListableObjectFactory.GetObject Overload List | GetObject