/** * Return the return type for the method that will be chosen for this payload. * @param payload the payload. * @return the return type, or null if no handler found. * @since 2.0 */ public Object getReturnType(Object payload) { if (this.invokerHandlerMethod != null) { return this.invokerHandlerMethod.getMethod().getReturnType(); } else { return this.delegatingHandler.getMethodFor(payload).getReturnType(); } }
/** * Return the return type for the method that will be chosen for this payload. * @param payload the payload. * @return the return type, or null if no handler found. * @since 2.0 */ public Object getReturnType(Object payload) { if (this.invokerHandlerMethod != null) { return this.invokerHandlerMethod.getMethod().getReturnType(); } else { return this.delegatingHandler.getMethodFor(payload).getReturnType(); } }