Search in sources :

Example 1 with IFindingsService

use of ch.elexis.core.findings.IFindingsService in project elexis-server by elexis.

the class AllTests method getFindingsService.

public static IFindingsService getFindingsService() {
    if (iFindingsService != null) {
        return iFindingsService;
    }
    BundleContext bundleContext = FrameworkUtil.getBundle(AllTests.class).getBundleContext();
    ServiceReference<IFindingsService> serviceReference = bundleContext.getServiceReference(IFindingsService.class);
    if (serviceReference != null) {
        iFindingsService = bundleContext.getService(serviceReference);
    }
    return iFindingsService;
}
Also used : IFindingsService(ch.elexis.core.findings.IFindingsService) BundleContext(org.osgi.framework.BundleContext)

Aggregations

IFindingsService (ch.elexis.core.findings.IFindingsService)1 BundleContext (org.osgi.framework.BundleContext)1