summaryrefslogtreecommitdiff
path: root/qpid/java/common/Composite.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/java/common/Composite.tpl')
-rw-r--r--qpid/java/common/Composite.tpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/qpid/java/common/Composite.tpl b/qpid/java/common/Composite.tpl
index 84b66a7d31..450b1dea0e 100644
--- a/qpid/java/common/Composite.tpl
+++ b/qpid/java/common/Composite.tpl
@@ -130,9 +130,13 @@ if options or base == "Method":
}
}
- public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+${
+
+if base == "Method":
+ out(""" public <C> void dispatch(C context, MethodDelegate<C> delegate) {
delegate.$(dromedary(name))(context, this);
- }
+ }""")
+}
${
for f in fields: