Automatically generate the provider interface when generating the FooMarshaller

and FooDispatcher. This means we will no longer be able to make FooProvider a
class that directly handles FooService methods, but the savings in confusion
for first time users of the framework will more than make up for the minor
inconvenience.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3714 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-09-27 22:27:04 +00:00
parent 4fbb911d7c
commit 2d9dffc7ec
4 changed files with 76 additions and 5 deletions
@@ -119,16 +119,16 @@ public abstract class InvocationTask extends Task
return StringUtil.unStudlyName(method.getName()).toUpperCase();
}
public String getArgList ()
public String getArgList (boolean providerMode)
{
StringBuffer buf = new StringBuffer();
Class[] args = method.getParameterTypes();
for (int ii = 0; ii < args.length; ii++) {
for (int ii = providerMode ? 1 : 0; ii < args.length; ii++) {
if (buf.length() > 0) {
buf.append(", ");
}
buf.append(GenUtil.simpleName(args[ii]));
buf.append(" arg").append(ii+1);
buf.append(" arg").append(providerMode ? ii : ii+1);
}
return buf.toString();
}