diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-10-13 16:07:01 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-10-13 16:07:01 +0000 |
| commit | 9ebd8a5bd4dd60e5983cfa998fea1c78fdb87401 (patch) | |
| tree | 6cbde7bc931ccfc726a27cd5b1573c43dea5fc8e /qpid/java/common/MethodDelegate.tpl | |
| parent | ea476363bc00e42de3b1e39f2c6d4a2ed6cb677f (diff) | |
| download | qpid-python-9ebd8a5bd4dd60e5983cfa998fea1c78fdb87401.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@704147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common/MethodDelegate.tpl')
| -rw-r--r-- | qpid/java/common/MethodDelegate.tpl | 6 |
1 files changed, 5 insertions, 1 deletions
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<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); + }""") } } |
