Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.GetTypeForFactoryMethod Method

Determines the Type of the object defined by the supplied object definition.

[Visual Basic]
Protected Overridable Sub GetTypeForFactoryMethod( _
   ByVal objectName As String, _
   ByVal definition As RootObjectDefinition _
)
[C#]
protected virtual Type GetTypeForFactoryMethod(
   string objectName,
   RootObjectDefinition definition
);

Parameters

objectName
The name associated with the supplied object definition.
definition
The RootObjectDefinition that the Type is to be determined for.

Return Value

The Type of the object defined by the supplied object definition; or if the Type cannot be determined.

Remarks

This, the default, implementation returns to indicate that the type cannot be determined. Subclasses are encouraged to try to determine the actual return Type here, matching their strategy of resolving factory methods in the

Spring.Objects.Factory.Support.AbstractObjectFactory.CreateObject
implementation.

See Also

AbstractObjectFactory Class | Spring.Objects.Factory.Support Namespace