@Named @Singleton public class LocationManager extends Object
Constructor and Description |
---|
LocationManager() |
Modifier and Type | Method and Description |
---|---|
ResolvePathResult |
parseModuleDescriptor(File descriptorPath) |
ResolvePathResult |
parseModuleDescriptor(Path descriptorPath) |
ResolvePathResult |
parseModuleDescriptor(String descriptorPath) |
<T> ResolvePathResult |
resolvePath(ResolvePathRequest<T> request)
Resolve a single jar
|
<T> ResolvePathsResult<T> |
resolvePaths(ResolvePathsRequest<T> request)
Decide for every
request.getPathElements() if it belongs to the modulePath or classPath, based on the
request.getMainModuleDescriptor() . |
public ResolvePathResult parseModuleDescriptor(Path descriptorPath) throws IOException
descriptorPath
- never null
IOException
- when descriptorPath could not be readpublic ResolvePathResult parseModuleDescriptor(File descriptorPath) throws IOException
descriptorPath
- never null
IOException
- when descriptorPath could not be readpublic ResolvePathResult parseModuleDescriptor(String descriptorPath) throws IOException
descriptorPath
- never null
IOException
- when descriptorPath could not be readpublic <T> ResolvePathResult resolvePath(ResolvePathRequest<T> request) throws IOException
request
- the requestResolvePathResult
, containing the name and optional module descriptorIOException
- if any occurspublic <T> ResolvePathsResult<T> resolvePaths(ResolvePathsRequest<T> request) throws IOException
request.getPathElements()
if it belongs to the modulePath or classPath, based on the
request.getMainModuleDescriptor()
.request
- the paths to resolveIOException
- if a critical IOException occursCopyright © 2001–2020 Codehaus Plexus. All rights reserved.