Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IInstantiationAwareObjectPostProcessor.PostProcessPropertyValues Method

Post-process the given property values before the factory applies them to the given object.

[Visual Basic]
Public Sub PostProcessPropertyValues( _
   ByVal pvs As IPropertyValues, _
   ByVal pis As PropertyInfo, _
   ByVal objectInstance As Object, _
   ByVal objectName As String _
)
[C#]
IPropertyValues PostProcessPropertyValues(
   IPropertyValues pvs,
   PropertyInfo[] pis,
   object objectInstance,
   string objectName
);

Parameters

pvs
The property values that the factory is about to apply (never
null
).
pis
he relevant property infos for the target object (with ignored dependency types - which the factory handles specifically - already filtered out)
objectInstance
The object instance created, but whose properties have not yet been set.
objectName
Name of the object.

Return Value

The actual property values to apply to the given object (can be the passed-in PropertyValues instances0 or null to skip property population.

Remarks

Allows for checking whether all dependencies have been satisfied, for example based on a "Required" annotation on bean property setters.

Also allows for replacing the property values to apply, typically through creating a new MutablePropertyValues instance based on the original PropertyValues, adding or removing specific values.

See Also

IInstantiationAwareObjectPostProcessor Interface | Spring.Objects.Factory.Config Namespace