|
||||||||||
| 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)
Load jbpm configuration related resources as stream (normally jbpm.cfg.xml). |
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)
public static java.lang.Class classForName(java.lang.String className,
boolean useConfiguredLoader)
public 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)
ClassLoaderUtil class loader, if not found it tries
the context class loader. If this doesn't return any ressource the call is delegated to the
class loader configured by calling getClassLoader(). This is a special method because the class
loader which has to be used for loading the jbpm.cfg.xml cannot be configured in the
jbpm.cfg.xml itself.
public 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 | |||||||||