public class DfltLoaderMgr extends java.lang.Object implements IQBPLoaderMgr
| Constructor and Description |
|---|
DfltLoaderMgr()
Default constructor: only loads from standard class path.
|
DfltLoaderMgr(java.io.File loader_dir)
Load from standard class path, or from directories under a specified directory.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.ClassLoader |
getLoaderFor(java.lang.String class_name,
java.lang.String class_source)
Get a class loader for a particular class and source.
|
public DfltLoaderMgr()
throws java.lang.SecurityException
java.lang.SecurityException - if loading classes is not allowed
for this thread.public DfltLoaderMgr(java.io.File loader_dir)
throws java.lang.SecurityException,
java.lang.IllegalArgumentException
loader_dir - the directory we can load from.java.lang.SecurityException - if loading classes is not allowed
for this thread.java.lang.IllegalArgumentException - if loader_dir is null, or not
a valid path.public java.lang.ClassLoader getLoaderFor(java.lang.String class_name,
java.lang.String class_source)
throws java.lang.UnsupportedOperationException,
java.lang.IllegalArgumentException,
java.lang.Exception
getLoaderFor in interface IQBPLoaderMgrclass_name - the fully qualified class nameclass_source - this identifies a source for the class.
This may be left null, in which case this
uses the default loader for this thread.
If non-null this is a path to the class file.java.lang.UnsupportedOperationException - if class_source is non-null
and loading from that source is not allowed.java.lang.IllegalArgumentException - if class_name is null, or loading
of that class is not allowed.java.lang.Exception - on other errors.