@Component(role=IndexCreator.class, hint="maven-archetype") public class MavenArchetypeArtifactInfoIndexCreator extends AbstractIndexCreator
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
ARCHETYPE_XML_LOCATIONS |
static java.lang.String |
ID |
private static java.lang.String |
MAVEN_ARCHETYPE_PACKAGING |
Constructor and Description |
---|
MavenArchetypeArtifactInfoIndexCreator() |
Modifier and Type | Method and Description |
---|---|
private void |
checkMavenArchetype(ArtifactInfo ai,
java.io.File artifact)
Archetypes that are added will have their packaging types set correctly (to maven-archetype)
|
java.util.Collection<IndexerField> |
getIndexerFields()
Returns the indexer fields that this IndexCreator introduces to index.
|
void |
populateArtifactInfo(ArtifactContext ac)
Populate an
ArtifactContext with information about corresponding artifact. |
java.lang.String |
toString() |
boolean |
updateArtifactInfo(org.apache.lucene.document.Document doc,
ArtifactInfo ai)
Update an
ArtifactInfo from given Lucene Document . |
void |
updateDocument(ArtifactInfo ai,
org.apache.lucene.document.Document doc)
Update Lucene
Document from a given ArtifactInfo . |
bos, getCreatorDependencies, getId, sob
public static final java.lang.String ID
private static final java.lang.String MAVEN_ARCHETYPE_PACKAGING
private static final java.lang.String[] ARCHETYPE_XML_LOCATIONS
public MavenArchetypeArtifactInfoIndexCreator()
public void populateArtifactInfo(ArtifactContext ac)
IndexCreator
ArtifactContext
with information about corresponding artifact.private void checkMavenArchetype(ArtifactInfo ai, java.io.File artifact)
ai
- artifact
- public void updateDocument(ArtifactInfo ai, org.apache.lucene.document.Document doc)
IndexCreator
Document
from a given ArtifactInfo
.public boolean updateArtifactInfo(org.apache.lucene.document.Document doc, ArtifactInfo ai)
IndexCreator
ArtifactInfo
from given Lucene Document
.public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Collection<IndexerField> getIndexerFields()
IndexCreator