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
This commit is contained in:
parent
55ea5239cb
commit
37cc6e581d
@ -44,6 +44,7 @@ import java.net.URL;
|
|||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.jar.Attributes;
|
import java.util.jar.Attributes;
|
||||||
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -153,6 +154,7 @@ public abstract class Serializer {
|
|||||||
|
|
||||||
serializer.initialize(cls);
|
serializer.initialize(cls);
|
||||||
|
|
||||||
|
log.log( Level.INFO, "Registered class:{0}.", cls );
|
||||||
return reg;
|
return reg;
|
||||||
}
|
}
|
||||||
if (failOnMiss) {
|
if (failOnMiss) {
|
||||||
@ -161,6 +163,11 @@ public abstract class Serializer {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated This cannot be implemented in a reasonable way that works in
|
||||||
|
* all deployment methods.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public static SerializerRegistration[] registerPackage(String pkgName) {
|
public static SerializerRegistration[] registerPackage(String pkgName) {
|
||||||
try {
|
try {
|
||||||
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
|
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user