public interface ModuleResourceResolver<T extends Module>
Modifier and Type | Method and Description |
---|---|
boolean |
isPom(Path resource)
Return true if the file is the Module's pom.xml file
|
Package |
resolveDefaultPackage(Module module) |
Path |
resolveDefaultPath(Package pkg,
String resourceType)
Given a package and a resource extension resolves the target path where the resource should be placed by default.
|
Package |
resolveDefaultWorkspacePackage(Module module) |
T |
resolveModule(Path resource)
Given a Resource path resolve it to the containing Module Path.
|
T |
resolveModule(Path resource,
boolean loadPOM)
Given a Resource path resolve it to the containing Module Path.
|
Package |
resolvePackage(Path resource)
Given a Resource path resolve it to the containing Package Path.
|
Set<Package> |
resolvePackages(Module module)
Given a Module resolves the calculation of all the packages for this module.
|
Set<Package> |
resolvePackages(Package pkg) |
Module |
resolveParentModule(Path resource) |
Package |
resolveParentPackage(Package pkg) |
Module |
resolveToParentModule(Path resource) |
T resolveModule(Path resource)
resource
- T resolveModule(Path resource, boolean loadPOM)
resource
- loadPOM
- true iff the POM file should be parsed and loaded.Set<Package> resolvePackages(Module module)
module
- Path resolveDefaultPath(Package pkg, String resourceType)
pkg
- A package within a module.resourceType
- a file extension.boolean isPom(Path resource)
resource
- Package resolvePackage(Path resource)
resource
- Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.