From 1dbd617d2dd75c346aa18ed253b477e5bbcf9591 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Wed, 24 Aug 2011 09:52:35 +0000 Subject: [PATCH] Added a method to register classes in bulk. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8069 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../networking/com/jme3/network/serializing/Serializer.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/src/networking/com/jme3/network/serializing/Serializer.java b/engine/src/networking/com/jme3/network/serializing/Serializer.java index 179371e45..80be2deb1 100644 --- a/engine/src/networking/com/jme3/network/serializing/Serializer.java +++ b/engine/src/networking/com/jme3/network/serializing/Serializer.java @@ -145,6 +145,12 @@ public abstract class Serializer { return registerClass(cls, true); } + public static void registerClasses(Class... classes) { + for( Class c : classes ) { + registerClass(c); + } + } + /** * Registers the specified class. The failOnMiss flag controls whether or * not this method returns null for failed registration or throws an exception.