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
FieldsModifier and TypeFieldDescriptionstatic final IndexerFieldstatic final IndexerFieldstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the indexer fields that this IndexCreator introduces to index.voidPopulate anArtifactContextwith information about corresponding artifact.toString()booleanupdateArtifactInfo(org.apache.lucene.document.Document doc, ArtifactInfo ai) Update anArtifactInfofrom given LuceneDocument.voidupdateDocument(ArtifactInfo ai, org.apache.lucene.document.Document doc) Update LuceneDocumentfrom 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:IndexCreatorPopulate anArtifactContextwith information about corresponding artifact. -
updateDocument
Description copied from interface:IndexCreatorUpdate LuceneDocumentfrom a givenArtifactInfo. -
updateArtifactInfo
Description copied from interface:IndexCreatorUpdate anArtifactInfofrom given LuceneDocument.- Returns:
- true is artifact info has been updated
-
toString
-
getIndexerFields
Description copied from interface:IndexCreatorReturns the indexer fields that this IndexCreator introduces to index.- Returns:
-