public abstract class ResourceResolver<T extends Module> extends Object implements ModuleResourceResolver<T>
| Modifier and Type | Field and Description |
|---|---|
protected CommentedOptionFactory |
commentedOptionFactory |
protected IOService |
ioService |
protected POMService |
pomService |
protected List<ModuleResourcePathResolver> |
resourcePathResolvers |
| Constructor and Description |
|---|
ResourceResolver() |
ResourceResolver(IOService ioService,
POMService pomService,
CommentedOptionFactory commentedOptionFactory,
javax.enterprise.inject.Instance<ModuleResourcePathResolver> resourcePathResolversInstance) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultWorkspacePath(GAV gav) |
String[] |
getLegalId(String id) |
protected boolean |
hasPom(Path path) |
boolean |
isPom(Path resource) |
protected T |
makeModule(Path nioModuleRootPath) |
protected Package |
makePackage(Module module,
Path resource) |
Package |
newPackage(Package parentPackage,
String packageName,
boolean startBatch) |
Package |
resolveDefaultPackage(Module module) |
Path |
resolveDefaultPath(Package pkg,
String resourceType) |
Package |
resolveDefaultWorkspacePackage(Module module) |
T |
resolveModule(Path resource) |
Package |
resolvePackage(Path resource) |
Set<Package> |
resolvePackages(Module module) |
Set<Package> |
resolvePackages(Package pkg) |
Module |
resolveParentModule(Path resource) |
Package |
resolveParentPackage(Package pkg) |
Module |
resolveToParentModule(Path resource) |
abstract T |
simpleModuleInstance(Path nioModuleRootPath)
This does not contain the POM.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveModuleprotected IOService ioService
protected POMService pomService
protected CommentedOptionFactory commentedOptionFactory
protected List<ModuleResourcePathResolver> resourcePathResolvers
public ResourceResolver()
public ResourceResolver(IOService ioService, POMService pomService, CommentedOptionFactory commentedOptionFactory, javax.enterprise.inject.Instance<ModuleResourcePathResolver> resourcePathResolversInstance)
public T resolveModule(Path resource)
resolveModule in interface ModuleResourceResolver<T extends Module>public Module resolveParentModule(Path resource)
resolveParentModule in interface ModuleResourceResolver<T extends Module>public Module resolveToParentModule(Path resource)
resolveToParentModule in interface ModuleResourceResolver<T extends Module>public Set<Package> resolvePackages(Module module)
resolvePackages in interface ModuleResourceResolver<T extends Module>public Set<Package> resolvePackages(Package pkg)
resolvePackages in interface ModuleResourceResolver<T extends Module>public Package resolveDefaultPackage(Module module)
resolveDefaultPackage in interface ModuleResourceResolver<T extends Module>public Package resolveDefaultWorkspacePackage(Module module)
resolveDefaultWorkspacePackage in interface ModuleResourceResolver<T extends Module>public Package resolveParentPackage(Package pkg)
resolveParentPackage in interface ModuleResourceResolver<T extends Module>public Path resolveDefaultPath(Package pkg, String resourceType)
resolveDefaultPath in interface ModuleResourceResolver<T extends Module>public boolean isPom(Path resource)
isPom in interface ModuleResourceResolver<T extends Module>public Package resolvePackage(Path resource)
resolvePackage in interface ModuleResourceResolver<T extends Module>protected boolean hasPom(Path path)
public abstract T simpleModuleInstance(Path nioModuleRootPath)
nioModuleRootPath - Module root pathCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.