Browse Source

Deprecated registerPackage() and added a log INFO to
log all classes that are registered.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7136 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

PSp..om 14 years ago
parent
commit
37cc6e581d

+ 7 - 0
engine/src/networking/com/jme3/network/serializing/Serializer.java

@@ -44,6 +44,7 @@ import java.net.URL;
 import java.nio.ByteBuffer;
 import java.util.*;
 import java.util.jar.Attributes;
+import java.util.logging.Level;
 import java.util.logging.Logger;
 
 /**
@@ -153,6 +154,7 @@ public abstract class Serializer {
 
             serializer.initialize(cls);
 
+            log.log( Level.INFO, "Registered class:{0}.", cls );
             return reg;
         }
         if (failOnMiss) {
@@ -161,6 +163,11 @@ public abstract class Serializer {
         return null;
     }
 
+    /**
+     *  @deprecated This cannot be implemented in a reasonable way that works in
+     *              all deployment methods.
+     */
+    @Deprecated
     public static SerializerRegistration[] registerPackage(String pkgName) {
         try {
             ClassLoader classLoader = Thread.currentThread().getContextClassLoader();