|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.util.export.binary.BinaryClassLoader
public class BinaryClassLoader
This class is mis-named and is located in an inappropriate package: It is not binary-specific (it is in fact used for XML format too), and it is not a java.lang.ClassLoader, which is what "class loader" is for Java developers.
| Constructor Summary | |
|---|---|
BinaryClassLoader()
|
|
| Method Summary | |
|---|---|
static Savable |
fromName(java.lang.String className,
InputCapsule inputCapsule)
fromName creates a new Savable from the provided class name. |
static void |
registerModule(BinaryLoaderModule m)
registrrModule adds a module to the loader for handling special case class names. |
static void |
unregisterModule(BinaryLoaderModule m)
unregisterModule removes a module from the loader, no longer using it to handle special case class names. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryClassLoader()
| Method Detail |
|---|
public static void registerModule(BinaryLoaderModule m)
m - the module to register with this loader.public static void unregisterModule(BinaryLoaderModule m)
m - the module to remove from the loader.
public static Savable fromName(java.lang.String className,
InputCapsule inputCapsule)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException,
java.io.IOException
className - the class name to create.inputCapsule - the InputCapsule that will be used for loading the Savable (to look up ctor parameters)
java.lang.InstantiationException - thrown if the class does not have an empty constructor.
java.lang.IllegalAccessException - thrown if the class is not accessable.
java.lang.ClassNotFoundException - thrown if the class name is not in the classpath.
java.io.IOException - when loading ctor parameters fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||