|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.rave.web.ui.util.ClassLoaderFinder
public class ClassLoaderFinder
Strategies for finding the current ClassLoader such as
Thread.currentThread().getContextClassLoader()
do not work during design time, where the notion of the
classpath is more constrained. Please make sure you use
this utility when you need to get hold of the current loader.
Constructor Summary | |
---|---|
ClassLoaderFinder()
|
Method Summary | |
---|---|
static java.lang.ClassLoader |
getCurrentLoader(java.lang.Object fallbackClass)
Return the best class loader to use for loading resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassLoaderFinder()
Method Detail |
---|
public static java.lang.ClassLoader getCurrentLoader(java.lang.Object fallbackClass)
Return the best class loader to use for loading resources.
This is normally the thread context class loader but can
overridden using #setCustomClassLoader
. At design-time, if
no custom class loader has been set, an attempt will be made to
load the class loader stored in the servlet or portlet context
attribute com.sun.rave.project.classloader
fallbackClass
- If there is no context class loader, fall
back to using the class loader for the given object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |