Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SmartInstantiationAwareObjectPostProcessor.PredictObjectType Method

Predicts the type of the object to be eventually returned from this processors PostProcessBeforeInstantiation callback.

[Visual Basic]
Public Sub PredictObjectType( _
   ByVal objectType As Type, _
   ByVal objectName As String _
)
[C#]
Type PredictObjectType(
   Type objectType,
   string objectName
);

Parameters

objectType
The raw Type of the object.
objectName
Name of the object.

Return Value

The type of the object, or

null
if not predictable.

Exceptions

Exception Type Condition
ObjectsException in case of errors

See Also

SmartInstantiationAwareObjectPostProcessor Interface | Spring.Objects.Factory.Config Namespace