From 9ebd8a5bd4dd60e5983cfa998fea1c78fdb87401 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Mon, 13 Oct 2008 16:07:01 +0000 Subject: QPID-1339: - Removed the Channel class in order to simplify the state management surrounding Sessions and Connections. - Consolidated the ChannelDelegate into the ConnectionDelegate. - Modified MethodDelegate to invoke a generic handle method as the default action for each dispatched method. - Modified the code generator to produce a separate ConnectionInvoker and SessionInvoker. - Modified the invoker template to use package level visibility for all controls rather than public visibility. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@704147 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/java/common/MethodDelegate.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qpid/java/common/MethodDelegate.tpl') diff --git a/qpid/java/common/MethodDelegate.tpl b/qpid/java/common/MethodDelegate.tpl index 84fa0e43da..3ae1a78f2a 100644 --- a/qpid/java/common/MethodDelegate.tpl +++ b/qpid/java/common/MethodDelegate.tpl @@ -2,11 +2,15 @@ package org.apache.qpid.transport; public abstract class MethodDelegate { + public abstract void handle(C context, Method method); ${ from genutil import * for c in composites: name = cname(c) - out(" public void $(dromedary(name))(C context, $name struct) {}\n") + out(""" + public void $(dromedary(name))(C context, $name method) { + handle(context, method); + }""") } } -- cgit v1.2.1