@Component(role=ResourceLoader.class, hint="file", instantiationStrategy="per-lookup") public class FileResourceLoader extends AbstractResourceLoader
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
pathsROLE| Constructor and Description |
|---|
FileResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
PlexusResource |
getResource(String name)
Returns the resource with the given name.
|
static File |
getResourceAsFile(String name,
String outputPath,
File outputDirectory)
Deprecated.
|
addSearchPath, getResourceAsInputStreampublic static final String ID
public PlexusResource getResource(String name) throws ResourceNotFoundException
ResourceLoadername - The resources name.ResourceNotFoundException - The resource wasn't found, or wasn't available.public static File getResourceAsFile(String name, String outputPath, File outputDirectory) throws FileResourceCreationException
ResourceManager.getResourceAsFile(PlexusResource ).FileResourceCreationExceptionCopyright © 2001–2017 Codehaus Plexus. All rights reserved.