|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.util.ClassLoaderUtil
public class ClassLoaderUtil
provides centralized classloader lookup.
| Method Summary | |
|---|---|
static java.lang.Class |
classForName(java.lang.String className)
|
static java.lang.Class |
classForName(java.lang.String className,
boolean useConfiguredLoader)
|
static java.lang.ClassLoader |
getClassLoader()
Returns the ClassLoader employed by jBPM to load classes referenced in the
configuration. |
static java.util.Properties |
getProperties(java.lang.String resource)
|
static java.io.InputStream |
getStream(java.lang.String resource)
|
static java.io.InputStream |
getStream(java.lang.String resource,
boolean useConfiguredLoader)
Loads resource as stream. |
static java.lang.Class |
loadClass(java.lang.String className)
Deprecated. Use classForName(String) instead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Class loadClass(java.lang.String className)
public static java.lang.Class classForName(java.lang.String className)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public static java.lang.Class classForName(java.lang.String className,
boolean useConfiguredLoader)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic static java.lang.ClassLoader getClassLoader()
ClassLoader employed by jBPM to load classes referenced in the
configuration. The class loader can be changed in jbpm.cfg.xml by setting the
string property jbpm.class.loader. The possible values are:
jbpm (default) indicates the class loader of the jBPM classes. Before JBPM-1148 no other behavior was
availablecontext indicates the context
class loader
public static java.io.InputStream getStream(java.lang.String resource)
public static java.io.InputStream getStream(java.lang.String resource,
boolean useConfiguredLoader)
useConfiguredLoader is true, this
method searches for the resource in the context class loader, if not found it searches in
the class loader of this class.
This method helps bootstrap jBPM because the class loader used for locating the configuration resource cannot be configured in the configuration itself.
null if the resource was not
foundpublic static java.util.Properties getProperties(java.lang.String resource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||