From 92b2e93568a93a9da218f79e6249836f18368106 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Mon, 17 Sep 2007 21:06:53 +0000 Subject: * 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@576587 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/java/common/generate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qpid/java/common/generate') diff --git a/qpid/java/common/generate b/qpid/java/common/generate index b2448c6e5d..d6387623d8 100755 --- a/qpid/java/common/generate +++ b/qpid/java/common/generate @@ -210,7 +210,7 @@ class Struct: out.line(" }") out.line() - out.line(" public void delegate(C context, Delegate delegate) {") + out.line(" public void dispatch(C context, MethodDelegate 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 extends AbstractDelegate {") +dlg = Output(out_dir, out_pkg, "MethodDelegate") +dlg.line("public abstract class MethodDelegate {") for s in structs: dlg.line(" public void %s(C context, %s struct) {}" % (dromedary(s.name), s.name)) -- cgit v1.2.1