org.quartz.simpl
public class: InitThreadContextClassLoadHelper [javadoc |
source]
java.lang.Object
org.quartz.simpl.InitThreadContextClassLoadHelper
All Implemented Interfaces:
ClassLoadHelper
A
ClassLoadHelper that uses either the context class loader
of the thread that initialized Quartz.
| Method from org.quartz.simpl.InitThreadContextClassLoadHelper Detail: |
public URL getResource(String name) {
return initClassLoader.getResource(name);
}
Finds a resource with a given name. This method returns null if no
resource with this name is found. |
public InputStream getResourceAsStream(String name) {
return initClassLoader.getResourceAsStream(name);
}
Finds a resource with a given name. This method returns null if no
resource with this name is found. |
public void initialize() {
initClassLoader = Thread.currentThread().getContextClassLoader();
}
Called to give the ClassLoadHelper a chance to initialize itself,
including the oportunity to "steal" the class loader off of the calling
thread, which is the thread that is initializing Quartz. |
public Class loadClass(String name) throws ClassNotFoundException {
return initClassLoader.loadClass(name);
}
Return the class with the given name. |