@Named @Singleton public class LocationManager extends Object
Constructor | Description |
---|---|
LocationManager() |
Modifier and Type | Method | Description |
---|---|---|
ResolvePathResult |
parseModuleDescriptor(File descriptorPath) |
|
ResolvePathResult |
parseModuleDescriptor(String descriptorPath) |
|
ResolvePathResult |
parseModuleDescriptor(Path 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–2019 Codehaus Plexus. All rights reserved.