@Named public class DefaultArtifactManager extends Object implements ArtifactManager
| Constructor and Description |
|---|
DefaultArtifactManager(DefaultSession session) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Path> |
getPath(Artifact artifact)
Returns the path of the file previously associated to this artifact
or
Optional.empty() if no path has been associated. |
void |
setPath(Artifact artifact,
Path path)
Associates the given file path to the artifact.
|
@Inject public DefaultArtifactManager(@Nonnull DefaultSession session)
@Nonnull public Optional<Path> getPath(@Nonnull Artifact artifact)
ArtifactManagerOptional.empty() if no path has been associated.getPath in interface ArtifactManagerpublic void setPath(@Nonnull Artifact artifact, Path path)
ArtifactManagersetPath in interface ArtifactManagerCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.