Save This Page
Home » quartz-1.6.0 » org » quartz » simpl » [javadoc | source]
org.quartz.simpl
public class: CascadingClassLoadHelper [javadoc | source]
java.lang.Object
   org.quartz.simpl.CascadingClassLoadHelper

All Implemented Interfaces:
    ClassLoadHelper

A ClassLoadHelper uses all of the ClassLoadHelper types that are found in this package in its attempts to load a class, when one scheme is found to work, it is promoted to the scheme that will be used first the next time a class is loaded (in order to improve perfomance).

This approach is used because of the wide variance in class loader behavior between the various environments in which Quartz runs (e.g. disparate application servers, stand-alone, mobile devices, etc.). Because of this disparity, Quartz ran into difficulty with a one class-load style fits-all design. Thus, this class loader finds the approach that works, then 'remembers' it.

Method from org.quartz.simpl.CascadingClassLoadHelper Summary:
getResource,   getResourceAsStream,   initialize,   loadClass
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.quartz.simpl.CascadingClassLoadHelper Detail:
 public URL getResource(String 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) 
    Finds a resource with a given name. This method returns null if no resource with this name is found.
 public  void initialize() 
    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 the class with the given name.