Added a method to register classes in bulk.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8069 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
8f90e62fec
commit
1dbd617d2d
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user