org.apache.maven.index
Class ArtifactContext
java.lang.Object
org.apache.maven.index.ArtifactContext
public class ArtifactContext
- extends Object
An artifact context used to provide information about artifact during scanning. It is passed to the
IndexCreator
, which can populate ArtifactInfo
for the given artifact.
- Author:
- Jason van Zyl, Tamas Cservenak
- See Also:
IndexCreator.populateArtifactInfo(ArtifactContext)
,
NexusIndexer.scan(IndexingContext)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArtifactContext
public ArtifactContext(File pom,
File artifact,
File metadata,
ArtifactInfo artifactInfo,
Gav gav)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
getPom
public File getPom()
getPomModel
public org.apache.maven.model.Model getPomModel()
getArtifact
public File getArtifact()
getMetadata
public File getMetadata()
getArtifactInfo
public ArtifactInfo getArtifactInfo()
getGav
public Gav getGav()
getErrors
public List<Exception> getErrors()
addError
public void addError(Exception e)
createDocument
public org.apache.lucene.document.Document createDocument(IndexingContext context)
- Creates Lucene Document using
IndexCreator
s from the given IndexingContext
.
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.