Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

RequiredAttributeObjectPostProcessor.IsRequiredProperty Method

Determines whether the supplied property is required to have a value, that is to be dependency injected.

[Visual Basic]
Protected Overridable Sub IsRequiredProperty( _
   ByVal pi As PropertyInfo _
)
[C#]
protected virtual bool IsRequiredProperty(
   PropertyInfo pi
);

Parameters

pi
The target PropertyInfo

Return Value

true if the supplied property has been marked as being required;; otherwise, false if not or if the supplied property does not have a setter method

Remarks

This implementation looks for the existence of a "required" attribute on the supplied PropertyInfo and that the property has a setter method.

See Also

RequiredAttributeObjectPostProcessor Class | Spring.Objects.Factory.Attributes Namespace