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); }