public Object chooseMethod(Class[] arguments, boolean coerce) { if (doCall.isValidMethod(arguments)) { return doCall; } return null; } };
@Override public boolean isValidMethod(Class[] arguments) { return proxy().isValidMethod(arguments); }
/** * Checks that the given parameters are valid to call this method * * @param arguments the arguments to check * @throws IllegalArgumentException if the parameters are not valid */ public void checkParameters(Class[] arguments) { // lets check that the argument types are valid if (!isValidMethod(arguments)) { throw new IllegalArgumentException( "Parameters to method: " + getName() + " do not match types: " + InvokerHelper.toString(getParameterTypes()) + " for arguments: " + InvokerHelper.toString(arguments)); } }
public Object chooseMethod(Class[] arguments, boolean coerce) { if (doCall.isValidMethod(arguments)) { return doCall; } return null; } };
public Object chooseMethod(Class[] arguments, boolean coerce) { if (doCall.isValidMethod(arguments)) { return doCall; } return null; } };
public Object chooseMethod(Class[] arguments, boolean coerce) { if (doCall.isValidMethod(arguments)) { return doCall; } return null; } };
public Object chooseMethod(Class[] arguments, boolean coerce) { if (doCall.isValidMethod(arguments)) { return doCall; } return null; } };
@Override public boolean isValidMethod(Class[] arguments) { return proxy().isValidMethod(arguments); }
/** * Checks that the given parameters are valid to call this method * * @param arguments the arguments to check * @throws IllegalArgumentException if the parameters are not valid */ public void checkParameters(Class[] arguments) { // lets check that the argument types are valid if (!isValidMethod(arguments)) { throw new IllegalArgumentException( "Parameters to method: " + getName() + " do not match types: " + InvokerHelper.toString(getParameterTypes()) + " for arguments: " + InvokerHelper.toString(arguments)); } }
/** * Checks that the given parameters are valid to call this method * * @param arguments the arguments to check * @throws IllegalArgumentException if the parameters are not valid */ public void checkParameters(Class[] arguments) { // lets check that the argument types are valid if (!isValidMethod(arguments)) { throw new IllegalArgumentException( "Parameters to method: " + getName() + " do not match types: " + InvokerHelper.toString(getParameterTypes()) + " for arguments: " + InvokerHelper.toString(arguments)); } }
/** * Checks that the given parameters are valid to call this method * * @param arguments the arguments to check * @throws IllegalArgumentException if the parameters are not valid */ public void checkParameters(Class[] arguments) { // lets check that the argument types are valid if (!isValidMethod(arguments)) { throw new IllegalArgumentException( "Parameters to method: " + getName() + " do not match types: " + InvokerHelper.toString(getParameterTypes()) + " for arguments: " + InvokerHelper.toString(arguments)); } }