public class ResourceStreamSourceContextLoaderClassPath extends ResourceStreamSourceAbstract
If this class is on the system class path, then the class loader obtained from this.getClassLoader() won't be able to load resources from the application class path.
| Modifier and Type | Method and Description |
|---|---|
static ResourceStreamSourceContextLoaderClassPath |
create() |
static ResourceStreamSourceContextLoaderClassPath |
create(String prefix) |
protected InputStream |
doReadResource(String resourcePath)
Mandatory hook method; subclasses can return either null or
throw an exception if the resource could not be found.
|
String |
getName() |
readResource, toString, writeResourcepublic static ResourceStreamSourceContextLoaderClassPath create()
public static ResourceStreamSourceContextLoaderClassPath create(String prefix)
protected InputStream doReadResource(String resourcePath)
ResourceStreamSourceAbstractdoReadResource in class ResourceStreamSourceAbstractCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.