diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2007-09-17 21:06:53 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2007-09-17 21:06:53 +0000 |
| commit | d576e8af1b815495901aca7e207cf2076944659e (patch) | |
| tree | f4d509b5315d783a75c051febc39136ace40f857 /java/common/generate | |
| parent | 24966bd7fbaff11d8a0f1ad282180154c96a7d2f (diff) | |
| download | qpid-python-d576e8af1b815495901aca7e207cf2076944659e.tar.gz | |
* ProtocolEvent.Switch --> ProtocolDelegate
* Delegate --> MethodDelegate
* Added method dispatching as a separate delegation level to the
hierarchy underneath ProtocolDelegate.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@576587 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/generate')
| -rwxr-xr-x | java/common/generate | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/common/generate b/java/common/generate index b2448c6e5d..d6387623d8 100755 --- a/java/common/generate +++ b/java/common/generate @@ -210,7 +210,7 @@ class Struct: out.line(" }") out.line() - out.line(" public <C> void delegate(C context, Delegate<C> delegate) {") + out.line(" public <C> void dispatch(C context, MethodDelegate<C> delegate) {") out.line(" delegate.%s(context, this);" % dromedary(self.name)) out.line(" }") @@ -365,8 +365,8 @@ fct.line(" }") fct.line("}"); fct.write() -dlg = Output(out_dir, out_pkg, "Delegate") -dlg.line("public abstract class Delegate<C> extends AbstractDelegate<C> {") +dlg = Output(out_dir, out_pkg, "MethodDelegate") +dlg.line("public abstract class MethodDelegate<C> {") for s in structs: dlg.line(" public void %s(C context, %s struct) {}" % (dromedary(s.name), s.name)) |
