org.apache.camel.component
Class CamelResourceLoader
java.lang.Object
org.springframework.core.io.DefaultResourceLoader
org.apache.camel.component.CamelResourceLoader
- All Implemented Interfaces:
- org.springframework.core.io.ResourceLoader
public class CamelResourceLoader
- extends org.springframework.core.io.DefaultResourceLoader
A Camel specific ResourceLoader
which can load
resources from classpath using the Camel ClassResolver
.
Fields inherited from interface org.springframework.core.io.ResourceLoader |
CLASSPATH_URL_PREFIX |
Methods inherited from class org.springframework.core.io.DefaultResourceLoader |
getClassLoader, setClassLoader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CamelResourceLoader
public CamelResourceLoader(org.apache.camel.CamelContext camelContext)
getResource
public org.springframework.core.io.Resource getResource(String location)
- Specified by:
getResource
in interface org.springframework.core.io.ResourceLoader
- Overrides:
getResource
in class org.springframework.core.io.DefaultResourceLoader
getResourceByPath
protected org.springframework.core.io.Resource getResourceByPath(String path)
- Overrides:
getResourceByPath
in class org.springframework.core.io.DefaultResourceLoader
Apache CAMEL