|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.trans.DynamicLoader
public class DynamicLoader
Constructor Summary | |
---|---|
DynamicLoader()
|
Method Summary | |
---|---|
java.lang.Class |
getClass(java.lang.String className,
boolean tracing,
java.lang.ClassLoader classLoader)
Load a class using the class name provided. |
java.lang.ClassLoader |
getClassLoader()
Get the ClassLoader supplied using the method setClassLoader(java.lang.ClassLoader) . |
java.lang.Object |
getInstance(java.lang.String className,
boolean tracing,
java.lang.ClassLoader classLoader)
Instantiate a class using the class name provided, with the option of tracing Note that the method does not check that the object is of the right class. |
java.lang.Object |
getInstance(java.lang.String className,
java.lang.ClassLoader classLoader)
Instantiate a class using the class name provided. |
void |
setClassLoader(java.lang.ClassLoader loader)
Set a ClassLoader to be used when loading external classes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicLoader()
Method Detail |
---|
public void setClassLoader(java.lang.ClassLoader loader)
This method is intended for external use by advanced users, but should be regarded as experimental.
loader
- the ClassLoader to be used in this configurationpublic java.lang.ClassLoader getClassLoader()
setClassLoader(java.lang.ClassLoader)
.
If none has been supplied, return null.
This method is intended for external use by advanced users, but should be regarded as experimental.
public java.lang.Class getClass(java.lang.String className, boolean tracing, java.lang.ClassLoader classLoader) throws XPathException
This method is intended for internal use only.
className
- A string containing the name of the
class, for example "com.microstar.sax.LarkDriver"tracing
- true if diagnostic tracing is requiredclassLoader
- The ClassLoader to be used to load the class. If this is null, then
the classLoader used will be the first one available of: the classLoader registered
with the Configuration using setClassLoader(java.lang.ClassLoader)
; the context class loader for
the current thread; or failing that, the class loader invoked implicitly by a call
of Class.forName() (which is the ClassLoader that was used to load the Configuration
object itself).
XPathException
- if the class cannot be loaded.public java.lang.Object getInstance(java.lang.String className, java.lang.ClassLoader classLoader) throws XPathException
This method is intended for internal use only.
className
- A string containing the name of the
class, for example "com.microstar.sax.LarkDriver"classLoader
- The ClassLoader to be used to load the class. If this is null, then
the classLoader used will be the first one available of: the classLoader registered
with the Configuration using setClassLoader(java.lang.ClassLoader)
; the context class loader for
the current thread; or failing that, the class loader invoked implicitly by a call
of Class.forName() (which is the ClassLoader that was used to load the Configuration
object itself).
XPathException
- if the class cannot be loaded.public java.lang.Object getInstance(java.lang.String className, boolean tracing, java.lang.ClassLoader classLoader) throws XPathException
This method is intended for internal use only.
className
- A string containing the name of the
class, for example "com.microstar.sax.LarkDriver"tracing
- true if attempts to load classes are to be traced to the consoleclassLoader
- The ClassLoader to be used to load the class. If this is null, then
the classLoader used will be the first one available of: the classLoader registered
with the Configuration using setClassLoader(java.lang.ClassLoader)
; the context class loader for
the current thread; or failing that, the class loader invoked implicitly by a call
of Class.forName() (which is the ClassLoader that was used to load the Configuration
object itself).
XPathException
- if the class cannot be loaded.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |