Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

RequiredAttributeObjectPostProcessor.PostProcessPropertyValues Method

Post-process the given property values before the factory applies them to the given object. Checks for the attribute specified by this PostProcessor's RequiredAttributeType.

[Visual Basic]
Public Overrides Sub PostProcessPropertyValues( _
   ByVal pvs As IPropertyValues, _
   ByVal pis As PropertyInfo, _
   ByVal objectInstance As Object, _
   ByVal objectName As String _
) _
    Implements IInstantiationAwareObjectPostProcessor.PostProcessPropertyValues
[C#]
public override 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
The 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 instances or null to skip property population.

Implements

IInstantiationAwareObjectPostProcessor.PostProcessPropertyValues

Exceptions

Exception Type Condition
ObjectInitializationException If a required property value has not been specified in the configuration metadata.

See Also

RequiredAttributeObjectPostProcessor Class | Spring.Objects.Factory.Attributes Namespace