@Service public class MavenPathResolvingStrategy extends AbstractPathResolvingStrategy
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.roo.project.PomManagementService |
pomManagementService |
ROOT_MODULE| Constructor and Description |
|---|
MavenPathResolvingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected PhysicalPath |
getApplicablePhysicalPath(String identifier)
Locates the first
PhysicalPath which can be construed as a parent
of the presented identifier. |
String |
getCanonicalPath(LogicalPath path,
org.springframework.roo.model.JavaType javaType) |
String |
getCanonicalPath(String moduleName,
Path path,
org.springframework.roo.model.JavaType javaType) |
String |
getFocusedCanonicalPath(Path path,
org.springframework.roo.model.JavaType javaType) |
String |
getFocusedIdentifier(Path path,
String relativePath) |
LogicalPath |
getFocusedPath(Path path) |
String |
getFocusedRoot(Path path) |
String |
getIdentifier(LogicalPath logicalPath,
String relativePath)
Produces a canonical path for the presented
LogicalPath and
relative path. |
String |
getIdentifier(String moduleName,
Path path,
String relativePath) |
LogicalPath |
getPath(String moduleName,
Path path) |
protected Collection<LogicalPath> |
getPaths(boolean sourceOnly)
Obtains the
Paths. |
String |
getRoot(LogicalPath modulePathId) |
boolean |
isActive()
Indicates whether this strategy is active.
|
activate, getFriendlyName, getPath, getPaths, getRelativeSegment, getRoot, getSourcePaths@Reference protected org.springframework.roo.project.PomManagementService pomManagementService
protected PhysicalPath getApplicablePhysicalPath(String identifier)
PhysicalPath which can be construed as a parent
of the presented identifier.getApplicablePhysicalPath in class AbstractPathResolvingStrategyidentifier - to locate the parent of (required)public String getCanonicalPath(LogicalPath path, org.springframework.roo.model.JavaType javaType)
path - the focus pathjavaType - the type tpublic String getCanonicalPath(String moduleName, Path path, org.springframework.roo.model.JavaType javaType)
public String getFocusedCanonicalPath(Path path, org.springframework.roo.model.JavaType javaType)
public LogicalPath getFocusedPath(Path path)
PathResolver.getFocusedPath(Path)public String getIdentifier(LogicalPath logicalPath, String relativePath)
PathResolvingStrategyLogicalPath and
relative path.logicalPath - to use (required)relativePath - to use (cannot be null, but may be empty if referring
to the path itself)public LogicalPath getPath(String moduleName, Path path)
PathResolver.getPath(String, Path)protected Collection<LogicalPath> getPaths(boolean sourceOnly)
AbstractPathResolvingStrategyPaths.getPaths in class AbstractPathResolvingStrategynull)public String getRoot(LogicalPath modulePathId)
PathResolver.getRoot(LogicalPath)public boolean isActive()
PathResolvingStrategyPathResolver will
typically expect exactly one strategy to be active at a time.Copyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.