Class LocationManager
java.lang.Object
org.codehaus.plexus.languages.java.jpms.LocationManager
Maps artifacts to modules and analyzes the type of required modules
- Since:
- 1.0.0
- Author:
- Robert Scholte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseModuleDescriptor(File descriptorPath) parseModuleDescriptor(String descriptorPath) parseModuleDescriptor(Path descriptorPath) resolvePath(ResolvePathRequest<T> request) Resolve a single jar<T> ResolvePathsResult<T> resolvePaths(ResolvePathsRequest<T> request) Decide for everyrequest.getPathElements()if it belongs to the modulePath or classPath, based on therequest.getMainModuleDescriptor().
-
Constructor Details
-
LocationManager
public LocationManager()
-
-
Method Details
-
parseModuleDescriptor
- Parameters:
descriptorPath- nevernull- Returns:
- the parsed module descriptor
- Throws:
IOException- when descriptorPath could not be read
-
parseModuleDescriptor
- Parameters:
descriptorPath- nevernull- Returns:
- the parsed module descriptor
- Throws:
IOException- when descriptorPath could not be read
-
parseModuleDescriptor
- Parameters:
descriptorPath- nevernull- Returns:
- the parsed module descriptor
- Throws:
IOException- when descriptorPath could not be read
-
resolvePath
Resolve a single jar- Parameters:
request- the request- Returns:
- the
ResolvePathResult, containing the name and optional module descriptor - Throws:
IOException- if any occurs
-
resolvePaths
Decide for everyrequest.getPathElements()if it belongs to the modulePath or classPath, based on therequest.getMainModuleDescriptor().- Parameters:
request- the paths to resolve- Returns:
- the result of the resolution
- Throws:
IOException- if a critical IOException occurs
-