|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.search.highlighting.HighlightingService
public class HighlightingService
HighlightingService using HighlightingTransformer services.
| Field Summary | |
|---|---|
static java.lang.String |
HIGHLIGHTING_PARAMETER_NAME
Constant for the sub annotation "name" of annotation HighlightingTransformer. |
static java.lang.String |
HIGHLIGHTING_PARAMETER_VALUE
Constant for the property name "value" of sub annotation "name". |
static java.lang.String |
HIGHLIGHTING_TRANSFORMER
Constant for the SearchAnnotation HighlightingTransformer. |
static java.lang.String |
HIGHLIGHTING_TRANSFORMER_REFERENCE
name of OSGi service reference to highlightingTransformer. |
static java.lang.String |
PROPERTY_HIGHLIGHTING_TRANSFORMER_TYPE
Constant for the OSGi property smila.highlighting.transformer.type. |
| Fields inherited from interface org.eclipse.smila.processing.SearchProcessingService |
|---|
PROPERTY_NAME |
| Constructor Summary | |
|---|---|
HighlightingService()
|
|
| Method Summary | |
|---|---|
protected void |
activate(ComponentContext context)
DS activate method. |
protected void |
deactivate(ComponentContext context)
DS deactivate method. |
SearchMessage |
process(Blackboard blackboard,
SearchMessage message)
process records on Blackboard service. |
protected void |
setHighlightingTransformer(ServiceReference serviceReference)
add a search processing service as an OSGi service reference. |
protected void |
unsetHighlightingTransformer(ServiceReference serviceReference)
remove a search processing service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String HIGHLIGHTING_TRANSFORMER_REFERENCE
public static final java.lang.String PROPERTY_HIGHLIGHTING_TRANSFORMER_TYPE
public static final java.lang.String HIGHLIGHTING_TRANSFORMER
public static final java.lang.String HIGHLIGHTING_PARAMETER_NAME
public static final java.lang.String HIGHLIGHTING_PARAMETER_VALUE
| Constructor Detail |
|---|
public HighlightingService()
| Method Detail |
|---|
protected void activate(ComponentContext context)
throws java.lang.Exception
context - ComponentContext
java.lang.Exception - if any error occurs
protected void deactivate(ComponentContext context)
throws java.lang.Exception
context - the ComponentContext
java.lang.Exception - if any error occursprotected void setHighlightingTransformer(ServiceReference serviceReference)
serviceReference - service reference to add.protected void unsetHighlightingTransformer(ServiceReference serviceReference)
serviceReference - service reference to remove.
public SearchMessage process(Blackboard blackboard,
SearchMessage message)
throws ProcessingException
process in interface SearchProcessingServiceblackboard - Blackboard service managing the records.message - Ids of query record and records to process.
ProcessingException - error during processing.SearchProcessingService.process(org.eclipse.smila.blackboard.Blackboard,
org.eclipse.smila.processing.SearchMessage)
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||