org.apache.maven.index.creator
Class MavenArchetypeArtifactInfoIndexCreator
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.index.creator.AbstractIndexCreator
org.apache.maven.index.creator.MavenArchetypeArtifactInfoIndexCreator
- All Implemented Interfaces:
- IndexCreator, org.codehaus.plexus.logging.LogEnabled
@Component(role=IndexCreator.class,
hint="maven-archetype")
public class MavenArchetypeArtifactInfoIndexCreator
- extends AbstractIndexCreator
A Maven Archetype index creator used to detect and correct the artifact packaging to "maven-archetype" if the
inspected JAR is an Archetype. Since packaging is already handled by Minimal creator, this Creator only alters the
supplied ArtifactInfo packaging field during processing, but does not interferes with Lucene document fill-up or the
ArtifactInfo fill-up (the update* methods are empty).
- Author:
- cstamas
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
ID
public static final String ID
- See Also:
- Constant Field Values
MavenArchetypeArtifactInfoIndexCreator
public MavenArchetypeArtifactInfoIndexCreator()
populateArtifactInfo
public void populateArtifactInfo(ArtifactContext ac)
- Description copied from interface:
IndexCreator
- Populate an
ArtifactContext
with information about corresponding artifact.
updateDocument
public void updateDocument(ArtifactInfo ai,
org.apache.lucene.document.Document doc)
- Description copied from interface:
IndexCreator
- Update Lucene
Document
from a given ArtifactInfo
.
updateArtifactInfo
public boolean updateArtifactInfo(org.apache.lucene.document.Document doc,
ArtifactInfo ai)
- Description copied from interface:
IndexCreator
- Update an
ArtifactInfo
from given Lucene Document
.
- Returns:
- true is artifact info has been updated
toString
public String toString()
- Overrides:
toString
in class Object
getIndexerFields
public Collection<IndexerField> getIndexerFields()
- Description copied from interface:
IndexCreator
- Returns the indexer fields that this IndexCreator introduces to index.
- Returns:
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.