java.lang.Objectorg.springframework.core.io.DefaultResourceLoader
All Implemented Interfaces:
ResourceLoader
Direct Known Subclasses:
XmlWebApplicationContext, StaticApplicationContext, ClassPathXmlApplicationContext, FileSystemResourceLoader, GenericApplicationContext, AbstractXmlApplicationContext, GenericWebApplicationContext, ResourceAdapterApplicationContext, AbstractRefreshableWebApplicationContext, FileSystemXmlApplicationContext, AbstractRefreshableConfigApplicationContext, StaticPortletApplicationContext, StaticWebApplicationContext, AbstractApplicationContext, PortletContextResourceLoader, AbstractRefreshableApplicationContext, AbstractRefreshablePortletApplicationContext, ServletContextResourceLoader, XmlPortletApplicationContext
Will return a UrlResource if the location value is a URL, and a ClassPathResource if it is a non-URL path or a "classpath:" pseudo-URL.
Juergen - Hoeller10.03.2004 - | Constructor: |
|---|
ClassLoader access will happen using the thread context class loader at the time of this ResourceLoader's initialization.
|
|
| Method from org.springframework.core.io.DefaultResourceLoader Summary: |
|---|
| getClassLoader, getResource, getResourceByPath, setClassLoader |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.core.io.DefaultResourceLoader Detail: |
|---|
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. |
|
The default implementation supports class path locations. This should be appropriate for standalone implementations but can be overridden, e.g. for implementations targeted at a Servlet container. |
null
for using the thread context class loader at the time of actual resource access.
The default is that ClassLoader access will happen using the thread context class loader at the time of this ResourceLoader's initialization. |