Class 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.
    • Constructor Detail

      • MavenPluginArtifactInfoIndexCreator

        public MavenPluginArtifactInfoIndexCreator()
    • Method Detail

      • populateArtifactInfo

        public void populateArtifactInfo​(ArtifactContext ac)
        Description copied from interface: IndexCreator
        Populate an ArtifactContext with information about corresponding artifact.
      • checkMavenPlugin

        private void checkMavenPlugin​(ArtifactInfo ai,
                                      java.io.File 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getIndexerFields

        public java.util.Collection<IndexerField> getIndexerFields()
        Description copied from interface: IndexCreator
        Returns the indexer fields that this IndexCreator introduces to index.
        Returns: