code: @Activate
      protected void activate(ComponentContext cContext, Map<String, Object> properties) throws Exception {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
              Tr.event(tc, "File monitor service activated", properties);
          }
          this.cContext = cContext;
          modified(properties);
  
          // Make sure all file monitors have been initialized.
          for (Map.Entry<ServiceReference<FileMonitor>, MonitorHolder> entry : fileMonitors.entrySet()) {
              entry.getValue().init();
          }
      }
docs: DS-driven component activation