summaryrefslogtreecommitdiff
path: root/java/common/generate
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2007-09-13 21:42:57 +0000
committerRafael H. Schloming <rhs@apache.org>2007-09-13 21:42:57 +0000
commite10d11937bccc3cdbdd867266501c3e16d28e933 (patch)
treeee31690915cbb880ba553708ed11b9b607b23a0b /java/common/generate
parent0a1b3430450f274aee273a9f792a2d43f771b85f (diff)
downloadqpid-python-e10d11937bccc3cdbdd867266501c3e16d28e933.tar.gz
* moved most of the classes in the org.apache.qpidity package to
org.apache.qpidity.transport * factored out the network specific pieces into org.apache.qpidity.transport * moved the mina specific code to org.apache.qpidity.transport.network.mina * replaced the handler chain with Sender/Receiver chains that can deal with close request/closed notifications * moved from an anonymous struct[] to a real Header class * removed an excess copy from message data transmit git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@575474 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/generate')
-rwxr-xr-xjava/common/generate5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/common/generate b/java/common/generate
index ac49c6283d..b2448c6e5d 100755
--- a/java/common/generate
+++ b/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))