|
||||||||||
| 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
centralized class loader access.
| Method Summary | |
|---|---|
static Class |
classForName(String className)
|
static Class |
classForName(String className,
boolean useConfiguredLoader)
|
static ClassLoader |
getClassLoader()
Returns the ClassLoader employed by jBPM to load classes referenced in the
configuration. |
static Properties |
getProperties(String resource)
|
static InputStream |
getStream(String resource)
|
static InputStream |
getStream(String resource,
boolean useConfiguredLoader)
Returns a stream for reading the specified resource. |
static Class |
loadClass(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 Class loadClass(String className)
public static Class classForName(String className)
throws ClassNotFoundException
ClassNotFoundException
public static Class classForName(String className,
boolean useConfiguredLoader)
throws ClassNotFoundException
ClassNotFoundExceptionpublic static 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 InputStream getStream(String resource)
public static InputStream getStream(String resource,
boolean useConfiguredLoader)
useConfiguredLoader - if true, this method searches for the resource in
the context class loader, if not found it falls back on the loader of this class
null if the resource was not
foundpublic static Properties getProperties(String resource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||