use of org.apache.felix.scr.annotations.Deactivate in project stanbol by apache.
the class EntityhubLinkingEngine method deactivate.
/**
* Deactivates this components.
*/
@Deactivate
protected void deactivate(ComponentContext context) {
//TODO:
//* unregister service
ServiceRegistration reg = engineRegistration;
if (reg != null) {
reg.unregister();
engineRegistration = null;
}
//* reset engine
entityLinkingEngine = null;
engineMetadata = null;
labelTokenizerTracker.close();
labelTokenizerTracker = null;
//close the tracking EntitySearcher
entitySearcher.close();
entitySearcher = null;
}
Aggregations