protected final void activate(final ComponentContext componentContext) {
this.bundleContext = componentContext.getBundleContext();
this.bundleContext.addServiceListener(this);
int count = 0;
HealthCheckFilter healthCheckFilter = new HealthCheckFilter(bundleContext);
final ServiceReference[] healthCheckReferences = healthCheckFilter.getTaggedHealthCheckServiceReferences(new String[0]);
for (ServiceReference serviceReference : healthCheckReferences) {
HealthCheckMetadata healthCheckMetadata = new HealthCheckMetadata(serviceReference);
if (isAsync(healthCheckMetadata)) {
if (scheduleHealthCheck(healthCheckMetadata)) {
count++;