public static void Validate(IAnnotatedProperty property) { if (property.Property.SetMethod == null) { throw new InjectionPointException(property.Property, "Injection property must have a setter"); } }
public static bool ScanPredicate(IAnnotatedProperty property) { return(ScanPredicate((IAnnotated)property) && (property.Property.SetMethod == null || property.Property.SetMethod.IsAbstract)); }
public PropertyInjectionPoint(IComponent declaringComponent, IAnnotatedProperty property) : this(declaringComponent, property.Property, property.Annotations) { InjectionValidator.Validate(property); }