|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.transit.ModernLayout
public class ModernLayout
The ModernLayout decodes artifacts into a layout scheme that follows the
convention of group/name/version/expanded-name pattern. Specifically the
layout maps artifacts according to the rule
[group[/[subgroup[/...]]]/[name]/[version]/name[-[version]].type.
Example: artifact:jar:metro/cache/dpml-cache-main#1.0.0
would return the path metro/cache/dpml-cache-main/1.0.0/dpml-cache-main-1.0.0.jar
.
Constructor Summary | |
---|---|
ModernLayout()
|
Method Summary | |
---|---|
String |
resolveBase(Artifact artifact)
Return the base path for an artifact. |
String |
resolveFilename(Artifact artifact)
Return the expanded filename of the artifact. |
String |
resolvePath(Artifact artifact)
Returns the full path of the artifact relative to a logical root directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModernLayout()
Method Detail |
---|
public final String resolveBase(Artifact artifact)
resolveBase
in interface Layout
artifact
- the resource artifact
public final String resolvePath(Artifact artifact)
resolvePath
in interface Layout
artifact
- the resource artifact
resolveBase(net.dpml.transit.Artifact)
,
resolveFilename(net.dpml.transit.Artifact)
public String resolveFilename(Artifact artifact)
resolveFilename
in interface Layout
artifact
- the resource artifact
Layout.resolveBase(net.dpml.transit.Artifact)
,
Layout.resolveFilename(net.dpml.transit.Artifact)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |