public class Loader extends Object
Constructor and Description |
---|
Loader() |
Modifier and Type | Method and Description |
---|---|
static Class |
getClass(String className)
Load a class using the class name provided.
Note that the method does not check that the object is of the right class. |
static Object |
getInstance(String className)
Instantiate a class using the class name provided.
Note that the method does not check that the object is of the right class. |
static void |
setTracing(boolean onOrOff)
Switch tracing on or off
|
public static void setTracing(boolean onOrOff)
public static Class getClass(String className) throws TransformerException
className
- A string containing the name of the
class, for example "com.microstar.sax.LarkDriver"TransformerException
public static Object getInstance(String className) throws TransformerException
className
- A string containing the name of the
class, for example "com.microstar.sax.LarkDriver"TransformerException