Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

InstantiationAwareObjectPostProcessorAdapter.PredictObjectType Method

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

[Visual Basic]
Public Overridable Sub PredictObjectType( _
   ByVal objectType As Type, _
   ByVal objectName As String _
) _
    Implements SmartInstantiationAwareObjectPostProcessor.PredictObjectType
[C#]
public virtual 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.

Implements

SmartInstantiationAwareObjectPostProcessor.PredictObjectType

Exceptions

Exception Type Condition
ObjectsException in case of errors

See Also

InstantiationAwareObjectPostProcessorAdapter Class | Spring.Objects.Factory.Config Namespace