/** * Invokes the target method with given arguments. * * @param args arguments for the invoked method * @return object returned by invoked method * * @throws Exception exception thrown when executing the delegate method. */ protected T invokeDelegateMethodWithArguments(Object[] args) throws Exception { MethodInvoker invoker = createMethodInvoker(targetObject, targetMethod); invoker.setArguments(args); return doInvoke(invoker); }
/** * Invoker the target method with arguments set by * {@link #setArguments(Object[])}. * * @return object returned by invoked method * * @throws Exception exception thrown when executing the delegate method. */ protected T invokeDelegateMethod() throws Exception { MethodInvoker invoker = createMethodInvoker(targetObject, targetMethod); invoker.setArguments(arguments); return doInvoke(invoker); }
/** * Invokes the target method with given argument. * * @param object argument for the target method * @return object returned by target method * * @throws Exception exception thrown when executing the delegate method. */ protected T invokeDelegateMethodWithArgument(Object object) throws Exception { MethodInvoker invoker = createMethodInvoker(targetObject, targetMethod); invoker.setArguments(new Object[] { object }); return doInvoke(invoker); }
MethodInvoker invoker = createMethodInvoker(targetObject, targetMethod);
/** * Invoker the target method with arguments set by * {@link #setArguments(Object[])}. * * @return object returned by invoked method * * @throws Exception exception thrown when executing the delegate method. */ protected T invokeDelegateMethod() throws Exception { MethodInvoker invoker = createMethodInvoker(targetObject, targetMethod); invoker.setArguments(arguments); return doInvoke(invoker); }
/** * Invokes the target method with given argument. * * @param object argument for the target method * @return object returned by target method * * @throws Exception exception thrown when executing the delegate method. */ protected T invokeDelegateMethodWithArgument(Object object) throws Exception { MethodInvoker invoker = createMethodInvoker(targetObject, targetMethod); invoker.setArguments(new Object[] { object }); return doInvoke(invoker); }
/** * Invokes the target method with given arguments. * * @param args arguments for the invoked method * @return object returned by invoked method * * @throws Exception exception thrown when executing the delegate method. */ protected T invokeDelegateMethodWithArguments(Object[] args) throws Exception { MethodInvoker invoker = createMethodInvoker(targetObject, targetMethod); invoker.setArguments(args); return doInvoke(invoker); }
MethodInvoker invoker = createMethodInvoker(targetObject, targetMethod);