@Singleton @Component(role=LocationManager.class) public class LocationManager extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ModuleInfoParser |
binaryParser |
private SourceModuleInfoParser |
sourceParser |
Constructor and Description |
---|
LocationManager() |
LocationManager(ModuleInfoParser binaryParser,
SourceModuleInfoParser sourceParser) |
Modifier and Type | Method and Description |
---|---|
<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() . |
private void |
select(JavaModuleDescriptor module,
java.util.Map<java.lang.String,JavaModuleDescriptor> availableModules,
java.util.Set<java.lang.String> namedModules) |
private ModuleInfoParser binaryParser
private SourceModuleInfoParser sourceParser
public LocationManager()
LocationManager(ModuleInfoParser binaryParser, SourceModuleInfoParser sourceParser)
public <T> ResolvePathsResult<T> resolvePaths(ResolvePathsRequest<T> request) throws java.io.IOException
request.getPathElements()
if it belongs to the modulePath or classPath, based on the
request.getMainModuleDescriptor()
.request
- the paths to resolvejava.io.IOException
- if a critical IOException occursprivate void select(JavaModuleDescriptor module, java.util.Map<java.lang.String,JavaModuleDescriptor> availableModules, java.util.Set<java.lang.String> namedModules)