Package com.icl.saxon
Class Loader
- java.lang.Object
-
- com.icl.saxon.Loader
-
public class Loader extends java.lang.Object
Loader is used to load a class given its name. The implementation varies in different Java environments.- Author:
- Michael H. Kay
-
-
Constructor Summary
Constructors Constructor Description Loader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Class
getClass(java.lang.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 java.lang.Object
getInstance(java.lang.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
-
-
-
Method Detail
-
setTracing
public static void setTracing(boolean onOrOff)
Switch tracing on or off
-
getClass
public static java.lang.Class getClass(java.lang.String className) throws javax.xml.transform.TransformerException
Load a class using the class name provided.
Note that the method does not check that the object is of the right class.- Parameters:
className
- A string containing the name of the class, for example "com.microstar.sax.LarkDriver"- Returns:
- an instance of the class named, or null if it is not loadable.
- Throws:
javax.xml.transform.TransformerException
-
getInstance
public static java.lang.Object getInstance(java.lang.String className) throws javax.xml.transform.TransformerException
Instantiate a class using the class name provided.
Note that the method does not check that the object is of the right class.- Parameters:
className
- A string containing the name of the class, for example "com.microstar.sax.LarkDriver"- Returns:
- an instance of the class named, or null if it is not loadable.
- Throws:
javax.xml.transform.TransformerException
-
-