@Service public class DefaultPathResolvingStrategy extends AbstractPathResolvingStrategy
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOGGER |
ROOT_MODULE| Constructor and Description |
|---|
DefaultPathResolvingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext cContext) |
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 path,
String relativePath)
Produces a canonical path for the presented
LogicalPath and
relative path. |
String |
getIdentifier(String modelName,
Path path,
String relativePath) |
LogicalPath |
getPath(String moduleName,
Path path) |
protected Collection<LogicalPath> |
getPaths(boolean sourceOnly)
Obtains the
Paths. |
String |
getRoot(LogicalPath logicalPath) |
boolean |
isActive()
Indicates whether this strategy is active.
|
getFriendlyName, getPath, getPaths, getRelativeSegment, getRoot, getSourcePathsprotected static final Logger LOGGER
protected void activate(org.osgi.service.component.ComponentContext cContext)
activate in class AbstractPathResolvingStrategyprotected 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 path, String relativePath)
PathResolvingStrategyLogicalPath and
relative path.path - 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 logicalPath)
PathResolver.getRoot(LogicalPath)public boolean isActive()
PathResolver will
typically expect exactly one strategy to be active at a time. This PathResolvingStrategy is not active if there
are any other active strategy, otherwise it is active.Copyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.