Class LocationManager
- java.lang.Object
-
- org.codehaus.plexus.languages.java.jpms.LocationManager
-
@Singleton @Component(role=LocationManager.class) public class LocationManager extends java.lang.Object
Maps artifacts to modules and analyzes the type of required modules- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description private ModuleInfoParser
binaryParser
private SourceModuleInfoParser
sourceParser
-
Constructor Summary
Constructors Constructor Description LocationManager()
LocationManager(ModuleInfoParser binaryParser, SourceModuleInfoParser sourceParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ResolvePathsResult<T>
resolvePaths(ResolvePathsRequest<T> request)
Decide for everyrequest.getPathElements()
if it belongs to the modulePath or classPath, based on therequest.getMainModuleDescriptor()
.private void
select(JavaModuleDescriptor module, java.util.Map<java.lang.String,JavaModuleDescriptor> availableModules, java.util.Set<java.lang.String> namedModules)
-
-
-
Field Detail
-
binaryParser
private ModuleInfoParser binaryParser
-
sourceParser
private SourceModuleInfoParser sourceParser
-
-
Constructor Detail
-
LocationManager
public LocationManager()
-
LocationManager
LocationManager(ModuleInfoParser binaryParser, SourceModuleInfoParser sourceParser)
-
-
Method Detail
-
resolvePaths
public <T> ResolvePathsResult<T> resolvePaths(ResolvePathsRequest<T> request) throws java.io.IOException
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:
java.io.IOException
- if a critical IOException occurs
-
select
private void select(JavaModuleDescriptor module, java.util.Map<java.lang.String,JavaModuleDescriptor> availableModules, java.util.Set<java.lang.String> namedModules)
-
-