@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)
ArtifactManager
Optional.empty()
if no path has been associated.getPath
in interface ArtifactManager
public void setPath(@Nonnull Artifact artifact, Path path)
ArtifactManager
setPath
in interface ArtifactManager
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.