public MessageMappingMethodInvoker(object obj, string methodName)
 {
     AssertUtils.ArgumentNotNull(obj, "object must not be null");
     AssertUtils.ArgumentNotNull(methodName, "methodName must not be null");
     _obj = obj;
     _methodResolver = CreateResolverForMethodName(methodName);
 }
 public MessageMappingMethodInvoker(object obj, Type attributeType)
 {
     AssertUtils.ArgumentNotNull(obj, "object must not be null");
     AssertUtils.ArgumentNotNull(attributeType, "annotation type must not be null");
     _obj = obj;
     _methodResolver = CreateResolverForAnnotation(attributeType);
 }
 public MessageMappingMethodInvoker(object obj, MethodInfo method)
 {
     AssertUtils.ArgumentNotNull(obj, "object must not be null");
     AssertUtils.ArgumentNotNull(method, "method must not be null");
     _obj = obj;
     _methodResolver = new StaticHandlerMethodResolver(method);
 }
예제 #4
0
 public MessageMappingMethodInvoker(object obj, string methodName)
 {
     AssertUtils.ArgumentNotNull(obj, "object must not be null");
     AssertUtils.ArgumentNotNull(methodName, "methodName must not be null");
     _obj            = obj;
     _methodResolver = CreateResolverForMethodName(methodName);
 }
예제 #5
0
 public MessageMappingMethodInvoker(object obj, Type attributeType)
 {
     AssertUtils.ArgumentNotNull(obj, "object must not be null");
     AssertUtils.ArgumentNotNull(attributeType, "annotation type must not be null");
     _obj            = obj;
     _methodResolver = CreateResolverForAnnotation(attributeType);
 }
예제 #6
0
 public MessageMappingMethodInvoker(object obj, MethodInfo method)
 {
     AssertUtils.ArgumentNotNull(obj, "object must not be null");
     AssertUtils.ArgumentNotNull(method, "method must not be null");
     _obj            = obj;
     _methodResolver = new StaticHandlerMethodResolver(method);
 }