org.apache.camel.component
Class CamelClassPathResource

java.lang.Object
  extended by org.springframework.core.io.AbstractResource
      extended by org.springframework.core.io.AbstractFileResolvingResource
          extended by org.springframework.core.io.ClassPathResource
              extended by org.apache.camel.component.CamelClassPathResource
All Implemented Interfaces:
org.springframework.core.io.InputStreamSource, org.springframework.core.io.Resource

Deprecated. use ResourceEndpoint. Will be removed in Camel 3.0.

@Deprecated
public class CamelClassPathResource
extends org.springframework.core.io.ClassPathResource

Camel specific ClassPathResource which uses the ClassResolver to load resources from the classpath.


Constructor Summary
CamelClassPathResource(org.apache.camel.spi.ClassResolver resolver, String path, ClassLoader classLoader)
          Deprecated.  
 
Method Summary
 InputStream getInputStream()
          Deprecated.  
 URL getURL()
          Deprecated.  
 
Methods inherited from class org.springframework.core.io.ClassPathResource
createRelative, equals, exists, getClassLoader, getDescription, getFilename, getPath, hashCode
 
Methods inherited from class org.springframework.core.io.AbstractFileResolvingResource
contentLength, getFile, getFile, getFileForLastModifiedCheck, isReadable, lastModified
 
Methods inherited from class org.springframework.core.io.AbstractResource
getURI, isOpen, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CamelClassPathResource

public CamelClassPathResource(org.apache.camel.spi.ClassResolver resolver,
                              String path,
                              ClassLoader classLoader)
Deprecated. 
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Deprecated. 
Specified by:
getInputStream in interface org.springframework.core.io.InputStreamSource
Overrides:
getInputStream in class org.springframework.core.io.ClassPathResource
Throws:
IOException

getURL

public URL getURL()
           throws IOException
Deprecated. 
Specified by:
getURL in interface org.springframework.core.io.Resource
Overrides:
getURL in class org.springframework.core.io.ClassPathResource
Throws:
IOException


Apache CAMEL