@Component(role=IndexCreator.class, hint="osgi-metadatas") public class OsgiArtifactIndexCreator extends AbstractIndexCreator
OSGI metadatas indexed :
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
BD |
private static java.lang.String |
BDU |
private static java.lang.String |
BEP |
private static java.lang.String |
BES |
private static java.lang.String |
BIP |
private static java.lang.String |
BL |
private static java.lang.String |
BN |
private static java.lang.String |
BRB |
private static java.lang.String |
BSN |
private static java.lang.String |
BV |
static IndexerField |
FLD_BUNDLE_DESCRIPTION |
static IndexerField |
FLD_BUNDLE_DOCURL |
static IndexerField |
FLD_BUNDLE_EXPORT_PACKAGE |
static IndexerField |
FLD_BUNDLE_EXPORT_SERVIVE |
static IndexerField |
FLD_BUNDLE_IMPORT_PACKAGE |
static IndexerField |
FLD_BUNDLE_LICENSE |
static IndexerField |
FLD_BUNDLE_NAME |
static IndexerField |
FLD_BUNDLE_REQUIRE_BUNDLE |
static IndexerField |
FLD_BUNDLE_SYMBOLIC_NAME |
static IndexerField |
FLD_BUNDLE_VERSION |
static java.lang.String |
ID |
Constructor and Description |
---|
OsgiArtifactIndexCreator() |
Modifier and Type | Method and Description |
---|---|
java.util.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. |
java.lang.String |
toString() |
private boolean |
updateArtifactInfo(ArtifactInfo ai,
java.io.File f) |
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, sob
public static final java.lang.String ID
private static final java.lang.String BSN
public static final IndexerField FLD_BUNDLE_SYMBOLIC_NAME
private static final java.lang.String BV
public static final IndexerField FLD_BUNDLE_VERSION
private static final java.lang.String BEP
public static final IndexerField FLD_BUNDLE_EXPORT_PACKAGE
private static final java.lang.String BES
public static final IndexerField FLD_BUNDLE_EXPORT_SERVIVE
private static final java.lang.String BD
public static final IndexerField FLD_BUNDLE_DESCRIPTION
private static final java.lang.String BN
public static final IndexerField FLD_BUNDLE_NAME
private static final java.lang.String BL
public static final IndexerField FLD_BUNDLE_LICENSE
private static final java.lang.String BDU
public static final IndexerField FLD_BUNDLE_DOCURL
private static final java.lang.String BIP
public static final IndexerField FLD_BUNDLE_IMPORT_PACKAGE
private static final java.lang.String BRB
public static final IndexerField FLD_BUNDLE_REQUIRE_BUNDLE
public java.util.Collection<IndexerField> getIndexerFields()
IndexCreator
public void populateArtifactInfo(ArtifactContext artifactContext) throws java.io.IOException
IndexCreator
ArtifactContext
with information about corresponding artifact.java.io.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
.private boolean updateArtifactInfo(ArtifactInfo ai, java.io.File f) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object