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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user