summaryrefslogtreecommitdiff
path: root/qpid/java/common/generate
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/java/common/generate')
-rwxr-xr-xqpid/java/common/generate5
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/java/common/generate b/qpid/java/common/generate
index ac49c6283d..b2448c6e5d 100755
--- a/qpid/java/common/generate
+++ b/qpid/java/common/generate
@@ -8,6 +8,7 @@ from cStringIO import StringIO
out_dir=sys.argv[1]
out_pkg = sys.argv[2]
spec_file = sys.argv[3]
+
spec = mllib.xml_parse(spec_file)
class Output:
@@ -27,6 +28,8 @@ class Output:
self.line("import org.apache.qpidity.codec.Encodable;")
self.line("import org.apache.qpidity.codec.Encoder;")
self.line()
+ self.line("import org.apache.qpidity.transport.network.Frame;")
+ self.line()
self.line()
def line(self, l = ""):
@@ -363,7 +366,7 @@ fct.line("}");
fct.write()
dlg = Output(out_dir, out_pkg, "Delegate")
-dlg.line("public abstract class Delegate<C> {")
+dlg.line("public abstract class Delegate<C> extends AbstractDelegate<C> {")
for s in structs:
dlg.line(" public void %s(C context, %s struct) {}" %
(dromedary(s.name), s.name))