@Singleton @Named(value="osgi-metadatas") public class OsgiArtifactIndexCreator extends AbstractIndexCreator
OSGI metadatas indexed :
Modifier and Type | Field and Description |
---|---|
static IndexerField |
FLD_BUNDLE_DESCRIPTION |
static IndexerField |
FLD_BUNDLE_DOCURL |
static IndexerField |
FLD_BUNDLE_EXPORT_PACKAGE |
static IndexerField |
FLD_BUNDLE_EXPORT_SERVIVE
Deprecated.
|
static IndexerField |
FLD_BUNDLE_FRAGMENT_HOST |
static IndexerField |
FLD_BUNDLE_IMPORT_PACKAGE |
static IndexerField |
FLD_BUNDLE_LICENSE |
static IndexerField |
FLD_BUNDLE_NAME |
static IndexerField |
FLD_BUNDLE_PROVIDE_CAPABILITY |
static IndexerField |
FLD_BUNDLE_REQUIRE_BUNDLE |
static IndexerField |
FLD_BUNDLE_REQUIRE_CAPABILITY |
static IndexerField |
FLD_BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT |
static IndexerField |
FLD_BUNDLE_SYMBOLIC_NAME |
static IndexerField |
FLD_BUNDLE_VERSION |
static IndexerField |
FLD_SHA256 |
static String |
ID |
Constructor and Description |
---|
OsgiArtifactIndexCreator() |
Modifier and Type | Method and Description |
---|---|
Collection<IndexerField> |
getIndexerFields()
Returns the indexer fields that this IndexCreator introduces to index.
|
void |
populateArtifactInfo(ArtifactContext artifactContext)
Populate an
ArtifactContext with information about corresponding artifact. |
String |
toString() |
boolean |
updateArtifactInfo(org.apache.lucene.document.Document document,
ArtifactInfo artifactInfo)
Update an
ArtifactInfo from given Lucene Document . |
void |
updateDocument(ArtifactInfo artifactInfo,
org.apache.lucene.document.Document document)
Update Lucene
Document from a given ArtifactInfo . |
bos, getCreatorDependencies, getId, getLogger, sob
public static final String ID
public static final IndexerField FLD_SHA256
public static final IndexerField FLD_BUNDLE_SYMBOLIC_NAME
public static final IndexerField FLD_BUNDLE_VERSION
public static final IndexerField FLD_BUNDLE_EXPORT_PACKAGE
@Deprecated public static final IndexerField FLD_BUNDLE_EXPORT_SERVIVE
public static final IndexerField FLD_BUNDLE_DESCRIPTION
public static final IndexerField FLD_BUNDLE_NAME
public static final IndexerField FLD_BUNDLE_LICENSE
public static final IndexerField FLD_BUNDLE_DOCURL
public static final IndexerField FLD_BUNDLE_IMPORT_PACKAGE
public static final IndexerField FLD_BUNDLE_REQUIRE_BUNDLE
public static final IndexerField FLD_BUNDLE_PROVIDE_CAPABILITY
public static final IndexerField FLD_BUNDLE_REQUIRE_CAPABILITY
public static final IndexerField FLD_BUNDLE_FRAGMENT_HOST
public static final IndexerField FLD_BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT
public Collection<IndexerField> getIndexerFields()
IndexCreator
public void populateArtifactInfo(ArtifactContext artifactContext) throws IOException
IndexCreator
ArtifactContext
with information about corresponding artifact.IOException
public void updateDocument(ArtifactInfo artifactInfo, org.apache.lucene.document.Document document)
IndexCreator
Document
from a given ArtifactInfo
.public boolean updateArtifactInfo(org.apache.lucene.document.Document document, ArtifactInfo artifactInfo)
IndexCreator
ArtifactInfo
from given Lucene Document
.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.