protected HandlerMethod(HandlerMethod handlerMethod) { if (handlerMethod == null) { throw new ArgumentNullException(nameof(handlerMethod)); } bean = handlerMethod.bean; beanType = handlerMethod.beanType; method = handlerMethod.method; }
protected HandlerMethod(HandlerMethod handlerMethod) { if (handlerMethod == null) { throw new ArgumentNullException(nameof(handlerMethod)); } _handler = handlerMethod.Handler; HandlerType = handlerMethod.HandlerType; Method = handlerMethod.Method; _invoker = handlerMethod.HandlerInvoker; _argCount = handlerMethod.ArgCount; }
private HandlerMethod(HandlerMethod handlerMethod, object handler) { if (handlerMethod == null) { throw new ArgumentNullException(nameof(handlerMethod)); } if (handler == null) { throw new ArgumentNullException(nameof(handler)); } bean = handler; beanType = handlerMethod.beanType; method = handlerMethod.method; ResolvedFromHandlerMethod = handlerMethod; }
private HandlerMethod(HandlerMethod handlerMethod, object handler) { if (handlerMethod == null) { throw new ArgumentNullException(nameof(handlerMethod)); } if (handler == null) { throw new ArgumentNullException(nameof(handler)); } _handler = handler; HandlerType = handlerMethod.HandlerType; Method = handlerMethod.Method; _invoker = handlerMethod.HandlerInvoker; _argCount = handlerMethod.ArgCount; ResolvedFromHandlerMethod = handlerMethod; }