From c46d62e6834205408502d89d99f73e47f3ca2eb8 Mon Sep 17 00:00:00 2001 From: Robert Godfrey Date: Tue, 20 Feb 2007 16:20:41 +0000 Subject: 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/qpid@509628 13f79535-47bb-0310-9956-ffa450edef68 --- gentools/templ.java/MethodRegistryClass.tmpl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gentools/templ.java') diff --git a/gentools/templ.java/MethodRegistryClass.tmpl b/gentools/templ.java/MethodRegistryClass.tmpl index 77a2e963e7..8752be4dc8 100644 --- a/gentools/templ.java/MethodRegistryClass.tmpl +++ b/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(); + } + } + } + } + + } } -- cgit v1.2.1