Class FileResourceLoader
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.codehaus.plexus.resource.loader.AbstractResourceLoader
-
- org.codehaus.plexus.resource.loader.FileResourceLoader
-
- All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled,ResourceLoader
@Component(role=ResourceLoader.class, hint="file", instantiationStrategy="per-lookup") public class FileResourceLoader extends AbstractResourceLoader
- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringID-
Fields inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
paths
-
Fields inherited from interface org.codehaus.plexus.resource.loader.ResourceLoader
ROLE
-
-
Constructor Summary
Constructors Constructor Description FileResourceLoader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PlexusResourcegetResource(java.lang.String name)Returns the resource with the given name.static java.io.FilegetResourceAsFile(java.lang.String name, java.lang.String outputPath, java.io.File outputDirectory)Deprecated.-
Methods inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
addSearchPath, getResourceAsInputStream
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getResource
public PlexusResource getResource(java.lang.String name) throws ResourceNotFoundException
Description copied from interface:ResourceLoaderReturns the resource with the given name.- Parameters:
name- The resources name.- Returns:
- The resource with the given name.
- Throws:
ResourceNotFoundException- The resource wasn't found, or wasn't available.
-
getResourceAsFile
public static java.io.File getResourceAsFile(java.lang.String name, java.lang.String outputPath, java.io.File outputDirectory) throws FileResourceCreationExceptionDeprecated.- Throws:
FileResourceCreationException
-
-