Skip to content

Commit

Permalink
Fixing missing OSGI annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorydlogan committed Jun 15, 2022
1 parent f6fa6cd commit 5ace9ae
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@

import org.osgi.framework.BundleContext;
import org.osgi.framework.Version;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Deactivate;
import org.osgi.service.component.annotations.Reference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -146,6 +148,7 @@ public class ScheduledDataCollector extends TimerTask {
* activate parameter at OSGi component declaration.
* @param ctx OSGi component context
*/
@Activate
public void activate(BundleContext ctx) {
logger.info("Activating adopter statistic scheduler.");
this.defaultOrganization = new DefaultOrganization();
Expand All @@ -168,6 +171,7 @@ public void activate(BundleContext ctx) {
timer.schedule(this, 0, ONE_DAY_IN_MILLISECONDS);
}

@Deactivate
public void deactivate() {
timer.cancel();
}
Expand Down Expand Up @@ -341,6 +345,7 @@ public void setServiceRegistry(ServiceRegistry serviceRegistry) {
this.serviceRegistry = serviceRegistry;
}

@Reference
public void setCaptureAdminService(CaptureAgentStateService stateService) {
this.caStateService = stateService;
}
Expand All @@ -357,6 +362,7 @@ public void setSeriesService(SeriesService seriesService) {
this.seriesService = seriesService;
}

@Reference
public void setSearchService(SearchService searchService) {
this.searchService = searchService;
}
Expand All @@ -374,6 +380,7 @@ public void setSecurityService(SecurityService securityService) {
}

/** OSGi callback for setting the org directory service. */
@Reference
public void setOrganizationDirectoryService(OrganizationDirectoryService orgDirServ) {
this.organizationDirectoryService = orgDirServ;
}
Expand Down

0 comments on commit 5ace9ae

Please sign in to comment.