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