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