예제 #1
0
 public static void Validate(IAnnotatedMethod method)
 {
     if (method.Method.IsGenericMethodDefinition)
     {
         throw new InjectionPointException(method.Method, "Cannot inject into a generic method");
     }
 }
예제 #2
0
 public ProducerMethod(IWeldComponent declaringComponent, IAnnotatedMethod method, WeldComponentManager manager)
     : this(declaringComponent, method.Method, method.Annotations, manager)
 {
 }