getClassLoader() Return the ClassLoader to load class path resources with,
or null if using the thread context class loader on actual access
(applying to the thread that constructs the ClassPathResource object).
The default implementation supports class path locations.
public void
setClassLoader(ClassLoader classLoader) Specify the ClassLoader to load class path resources with, or null
for using the thread context class loader at the time of actual resource access.
ClassLoader access will happen using the thread context class loader
at the time of this ResourceLoader's initialization.
See Also:java.lang.Thread.getContextClassLoader
Create a new DefaultResourceLoader.
Parameters: classLoader - the ClassLoader to load class path resources with, or nullfor using the thread context class loader at the time of actual resource access
Return the ClassLoader to load class path resources with,
or null if using the thread context class loader on actual access
(applying to the thread that constructs the ClassPathResource object).
Will get passed to ClassPathResource's constructor for all
ClassPathResource objects created by this resource loader.
See Also:ClassPathResource