summaryrefslogtreecommitdiff
path: root/java/common/MethodDelegate.tpl
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-10-13 16:07:01 +0000
committerRafael H. Schloming <rhs@apache.org>2008-10-13 16:07:01 +0000
commitb1d6099e510849e96815736281b3ed24ab633b17 (patch)
tree8c30eada308c6aa0b3e8dff8c132ec4d121cc0b2 /java/common/MethodDelegate.tpl
parent059a98bd7a7b421cbadae6f93e426d8661d6b27a (diff)
downloadqpid-python-b1d6099e510849e96815736281b3ed24ab633b17.tar.gz
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/qpid@704147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/MethodDelegate.tpl')
-rw-r--r--java/common/MethodDelegate.tpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/java/common/MethodDelegate.tpl b/java/common/MethodDelegate.tpl
index 84fa0e43da..3ae1a78f2a 100644
--- a/java/common/MethodDelegate.tpl
+++ b/java/common/MethodDelegate.tpl
@@ -2,11 +2,15 @@ package org.apache.qpid.transport;
public abstract class MethodDelegate<C> {
+ 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);
+ }""")
}
}