Package org.apache.maven.index.creator
Class MavenPluginArtifactInfoIndexCreator
java.lang.Object
org.apache.maven.index.creator.AbstractIndexCreator
org.apache.maven.index.creator.MavenPluginArtifactInfoIndexCreator
- All Implemented Interfaces:
IndexCreator
@Singleton
@Named("maven-plugin")
public class MavenPluginArtifactInfoIndexCreator
extends AbstractIndexCreator
A Maven Plugin index creator used to provide information about Maven Plugins. It will collect the plugin prefix and
the goals the plugin provides. Also, the Lucene document and the returned ArtifactInfo will be correctly filled with
these information.
- Author:
- cstamas
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IndexerField
static final IndexerField
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the indexer fields that this IndexCreator introduces to index.void
Populate anArtifactContext
with information about corresponding artifact.toString()
boolean
updateArtifactInfo
(org.apache.lucene.document.Document doc, ArtifactInfo ai) Update anArtifactInfo
from given LuceneDocument
.void
updateDocument
(ArtifactInfo ai, org.apache.lucene.document.Document doc) Update LuceneDocument
from a givenArtifactInfo
.Methods inherited from class org.apache.maven.index.creator.AbstractIndexCreator
bos, getCreatorDependencies, getId, getLogger, sob
-
Field Details
-
ID
- See Also:
-
FLD_PLUGIN_PREFIX
-
FLD_PLUGIN_GOALS
-
-
Constructor Details
-
MavenPluginArtifactInfoIndexCreator
public MavenPluginArtifactInfoIndexCreator()
-
-
Method Details
-
populateArtifactInfo
Description copied from interface:IndexCreator
Populate anArtifactContext
with information about corresponding artifact. -
updateDocument
Description copied from interface:IndexCreator
Update LuceneDocument
from a givenArtifactInfo
. -
updateArtifactInfo
Description copied from interface:IndexCreator
Update anArtifactInfo
from given LuceneDocument
.- Returns:
- true is artifact info has been updated
-
toString
-
getIndexerFields
Description copied from interface:IndexCreator
Returns the indexer fields that this IndexCreator introduces to index.- Returns:
-