public abstract class TrackingEntitySearcher<T> extends Object implements org.apache.stanbol.enhancer.engines.entitylinking.EntitySearcher
EntityhubSearcher and the
ReferencedSiteSearcher implementation| Modifier and Type | Field and Description |
|---|---|
protected org.osgi.framework.BundleContext |
bundleContext |
| Modifier | Constructor and Description |
|---|---|
protected |
TrackingEntitySearcher(org.osgi.framework.BundleContext context,
Class<T> serviceClass,
Map<String,String> filterEntries,
org.osgi.util.tracker.ServiceTrackerCustomizer customizer)
Creates a new instance for the parsed parameter
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the
ServiceTracker used to track the service. |
protected void |
finalize() |
protected T |
getSearchService()
Getter for the Service used to search for Entities.
|
void |
open()
Starts the tracking by calling
ServiceTracker.open() |
protected TrackingEntitySearcher(org.osgi.framework.BundleContext context,
Class<T> serviceClass,
Map<String,String> filterEntries,
org.osgi.util.tracker.ServiceTrackerCustomizer customizer)
context - the BundleContexed used to create the ServiceTracker
listening for the SearchServiceserviceClass - filterEntries - public void open()
ServiceTracker.open()protected T getSearchService()
nullnull if not availablepublic void close()
ServiceTracker used to track the service.Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.