Result - The type of the IAnalysisResult this AnalysisService produces.Config - The type of the IAnalysisConfig this AnalysisService uses.public abstract class AbstractAnalysisService<Result extends IAnalysisResult,Config extends IAnalysisConfig> extends Object implements IAnalysisService<Result,Config>
DependsOn annotation indicating on which analyses the service depends on.
This class provides automatic methods to run depending analyses and to cache the results.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAnalysisService(org.osgi.framework.BundleContext context)
Constructor of the AnalysisService.
|
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.Bundle |
getBundle()
The Bundle which this AnalysisService belongs to.
|
protected abstract List<Class<? extends AbstractAnalysisService<? extends IAnalysisResult,? extends IAnalysisConfig>>> |
getDependOnAnalyses() |
Future<Result> |
performAnalysis(Config config)
Performs the analysis with the given config, running all required other analyses
This is implemented by
AbstractAnalysisService |
boolean |
shouldBeHidden()
Method the framework uses to decide whether this service should be hidden from the user
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertConfig, getName, parseConfig, runAnalysisprotected AbstractAnalysisService(org.osgi.framework.BundleContext context)
context - the context of the bundle this service belongs to.public final Future<Result> performAnalysis(Config config)
AbstractAnalysisServiceperformAnalysis in interface IAnalysisService<Result extends IAnalysisResult,Config extends IAnalysisConfig>config - the given configDependsOn,
AbstractAnalysisServicepublic org.osgi.framework.Bundle getBundle()
getBundle in interface IAnalysisService<Result extends IAnalysisResult,Config extends IAnalysisConfig>public boolean shouldBeHidden()
IAnalysisServiceshouldBeHidden in interface IAnalysisService<Result extends IAnalysisResult,Config extends IAnalysisConfig>protected abstract List<Class<? extends AbstractAnalysisService<? extends IAnalysisResult,? extends IAnalysisConfig>>> getDependOnAnalyses()
Copyright © 2017. All rights reserved.