summaryrefslogtreecommitdiff
path: root/qpid/gentools/templ.java
diff options
context:
space:
mode:
authorRobert Godfrey <rgodfrey@apache.org>2007-02-20 16:20:41 +0000
committerRobert Godfrey <rgodfrey@apache.org>2007-02-20 16:20:41 +0000
commit7b7e0445a11bb3962b417a8c939565c9866fbd79 (patch)
treeaf0711b9b146abca2613452f5f2c8b2df3062d9e /qpid/gentools/templ.java
parentf1bf17e6e58ea09aa21d5e7ed6a7cc5e4a54702e (diff)
downloadqpid-python-7b7e0445a11bb3962b417a8c939565c9866fbd79.tar.gz
QPID-325 : Persist durable exchange information in the store
QPID-318 : Remove hardcoding of version numbers (as applies to store) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@509628 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/gentools/templ.java')
-rw-r--r--qpid/gentools/templ.java/MethodRegistryClass.tmpl23
1 files changed, 23 insertions, 0 deletions
diff --git a/qpid/gentools/templ.java/MethodRegistryClass.tmpl b/qpid/gentools/templ.java/MethodRegistryClass.tmpl
index 77a2e963e7..8752be4dc8 100644
--- a/qpid/gentools/templ.java/MethodRegistryClass.tmpl
+++ b/qpid/gentools/templ.java/MethodRegistryClass.tmpl
@@ -48,6 +48,8 @@ public class MainRegistry
static
{
%{CLIST} ${reg_map_put_method}
+
+ configure();
}
public static AMQMethodBody get(short classID, short methodID, byte major, byte minor, ByteBuffer in, long size)
@@ -126,5 +128,26 @@ public class MainRegistry
}
+
+ private static void configure()
+ {
+ for(int i = 0 ; i < _specificRegistries.length; i++)
+ {
+ VersionSpecificRegistry[] registries = _specificRegistries[i];
+ if(registries != null)
+ {
+ for(int j = 0 ; j < registries.length; j++)
+ {
+ VersionSpecificRegistry registry = registries[j];
+
+ if(registry != null)
+ {
+ registry.configure();
+ }
+ }
+ }
+ }
+
+ }
}