Package org.apache.maven.index.creator
Class OsgiArtifactIndexCreator
java.lang.Object
org.apache.maven.index.creator.AbstractIndexCreator
org.apache.maven.index.creator.OsgiArtifactIndexCreator
- All Implemented Interfaces:
IndexCreator
@Singleton
@Named("osgi-metadatas")
public class OsgiArtifactIndexCreator
extends AbstractIndexCreator
This indexCreator will index some OSGI metadatas.
All jars are indexed and not only the ones with packaging bundle.
All jars are indexed and not only the ones with packaging bundle.
OSGI metadatas indexed :
- Bundle-SymbolicName
- Bundle-Version
- Export-Package
- Export-Service
- Since:
- 4.1.2
- Author:
- Olivier Lamy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldDeprecated.static final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final IndexerFieldstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the indexer fields that this IndexCreator introduces to index.voidpopulateArtifactInfo(ArtifactContext artifactContext) Populate anArtifactContextwith information about corresponding artifact.toString()booleanupdateArtifactInfo(org.apache.lucene.document.Document document, ArtifactInfo artifactInfo) Update anArtifactInfofrom given LuceneDocument.voidupdateDocument(ArtifactInfo artifactInfo, org.apache.lucene.document.Document document) 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_SHA256
-
FLD_BUNDLE_SYMBOLIC_NAME
-
FLD_BUNDLE_VERSION
-
FLD_BUNDLE_EXPORT_PACKAGE
-
FLD_BUNDLE_EXPORT_SERVIVE
Deprecated. -
FLD_BUNDLE_DESCRIPTION
-
FLD_BUNDLE_NAME
-
FLD_BUNDLE_LICENSE
-
FLD_BUNDLE_DOCURL
-
FLD_BUNDLE_IMPORT_PACKAGE
-
FLD_BUNDLE_REQUIRE_BUNDLE
-
FLD_BUNDLE_PROVIDE_CAPABILITY
-
FLD_BUNDLE_REQUIRE_CAPABILITY
-
FLD_BUNDLE_FRAGMENT_HOST
-
FLD_BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT
-
-
Constructor Details
-
OsgiArtifactIndexCreator
public OsgiArtifactIndexCreator()
-
-
Method Details
-
getIndexerFields
Description copied from interface:IndexCreatorReturns the indexer fields that this IndexCreator introduces to index.- Returns:
-
populateArtifactInfo
Description copied from interface:IndexCreatorPopulate anArtifactContextwith information about corresponding artifact.- Throws:
IOException
-
updateDocument
Description copied from interface:IndexCreatorUpdate LuceneDocumentfrom a givenArtifactInfo. -
updateArtifactInfo
public boolean updateArtifactInfo(org.apache.lucene.document.Document document, ArtifactInfo artifactInfo) Description copied from interface:IndexCreatorUpdate anArtifactInfofrom given LuceneDocument.- Returns:
- true is artifact info has been updated
-
toString
-